generated from nhcarrigan/template
fix: expose new sync patch counts from game context
Co-Authored-By: Hikari <hikari@nhcarrigan.com>
This commit is contained in:
@@ -580,16 +580,24 @@ interface GameContextValue {
|
|||||||
* @returns Counts of what was added per content type.
|
* @returns Counts of what was added per content type.
|
||||||
*/
|
*/
|
||||||
syncNewContent: ()=> Promise<{
|
syncNewContent: ()=> Promise<{
|
||||||
achievementsAdded: number;
|
achievementsAdded: number;
|
||||||
adventurersAdded: number;
|
achievementsPatched: number;
|
||||||
bossesAdded: number;
|
adventurerStatsPatched: number;
|
||||||
bossRewardsPatched: number;
|
adventurersAdded: number;
|
||||||
equipmentAdded: number;
|
bossRewardsPatched: number;
|
||||||
explorationAreasAdded: number;
|
bossesAdded: number;
|
||||||
questRewardsPatched: number;
|
bossesPatched: number;
|
||||||
questsAdded: number;
|
craftingRecipesReapplied: number;
|
||||||
upgradesAdded: number;
|
equipmentAdded: number;
|
||||||
zonesAdded: number;
|
equipmentPatched: number;
|
||||||
|
explorationAreasAdded: number;
|
||||||
|
questRewardsPatched: number;
|
||||||
|
questsAdded: number;
|
||||||
|
questsPatched: number;
|
||||||
|
upgradesAdded: number;
|
||||||
|
upgradesPatched: number;
|
||||||
|
zonesAdded: number;
|
||||||
|
zonesPatched: number;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2170,16 +2178,24 @@ export const GameProvider = ({
|
|||||||
localStorage.setItem("elysium_save_signature", data.signature);
|
localStorage.setItem("elysium_save_signature", data.signature);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
achievementsAdded: data.achievementsAdded,
|
achievementsAdded: data.achievementsAdded,
|
||||||
adventurersAdded: data.adventurersAdded,
|
achievementsPatched: data.achievementsPatched,
|
||||||
bossRewardsPatched: data.bossRewardsPatched,
|
adventurerStatsPatched: data.adventurerStatsPatched,
|
||||||
bossesAdded: data.bossesAdded,
|
adventurersAdded: data.adventurersAdded,
|
||||||
equipmentAdded: data.equipmentAdded,
|
bossRewardsPatched: data.bossRewardsPatched,
|
||||||
explorationAreasAdded: data.explorationAreasAdded,
|
bossesAdded: data.bossesAdded,
|
||||||
questRewardsPatched: data.questRewardsPatched,
|
bossesPatched: data.bossesPatched,
|
||||||
questsAdded: data.questsAdded,
|
craftingRecipesReapplied: data.craftingRecipesReapplied,
|
||||||
upgradesAdded: data.upgradesAdded,
|
equipmentAdded: data.equipmentAdded,
|
||||||
zonesAdded: data.zonesAdded,
|
equipmentPatched: data.equipmentPatched,
|
||||||
|
explorationAreasAdded: data.explorationAreasAdded,
|
||||||
|
questRewardsPatched: data.questRewardsPatched,
|
||||||
|
questsAdded: data.questsAdded,
|
||||||
|
questsPatched: data.questsPatched,
|
||||||
|
upgradesAdded: data.upgradesAdded,
|
||||||
|
upgradesPatched: data.upgradesPatched,
|
||||||
|
zonesAdded: data.zonesAdded,
|
||||||
|
zonesPatched: data.zonesPatched,
|
||||||
};
|
};
|
||||||
} catch (error_: unknown) {
|
} catch (error_: unknown) {
|
||||||
setError(
|
setError(
|
||||||
@@ -2188,16 +2204,24 @@ export const GameProvider = ({
|
|||||||
: "Failed to sync new content",
|
: "Failed to sync new content",
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
achievementsAdded: 0,
|
achievementsAdded: 0,
|
||||||
adventurersAdded: 0,
|
achievementsPatched: 0,
|
||||||
bossRewardsPatched: 0,
|
adventurerStatsPatched: 0,
|
||||||
bossesAdded: 0,
|
adventurersAdded: 0,
|
||||||
equipmentAdded: 0,
|
bossRewardsPatched: 0,
|
||||||
explorationAreasAdded: 0,
|
bossesAdded: 0,
|
||||||
questRewardsPatched: 0,
|
bossesPatched: 0,
|
||||||
questsAdded: 0,
|
craftingRecipesReapplied: 0,
|
||||||
upgradesAdded: 0,
|
equipmentAdded: 0,
|
||||||
zonesAdded: 0,
|
equipmentPatched: 0,
|
||||||
|
explorationAreasAdded: 0,
|
||||||
|
questRewardsPatched: 0,
|
||||||
|
questsAdded: 0,
|
||||||
|
questsPatched: 0,
|
||||||
|
upgradesAdded: 0,
|
||||||
|
upgradesPatched: 0,
|
||||||
|
zonesAdded: 0,
|
||||||
|
zonesPatched: 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user