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:
@@ -581,15 +581,23 @@ interface GameContextValue {
|
|||||||
*/
|
*/
|
||||||
syncNewContent: ()=> Promise<{
|
syncNewContent: ()=> Promise<{
|
||||||
achievementsAdded: number;
|
achievementsAdded: number;
|
||||||
|
achievementsPatched: number;
|
||||||
|
adventurerStatsPatched: number;
|
||||||
adventurersAdded: number;
|
adventurersAdded: number;
|
||||||
bossesAdded: number;
|
|
||||||
bossRewardsPatched: number;
|
bossRewardsPatched: number;
|
||||||
|
bossesAdded: number;
|
||||||
|
bossesPatched: number;
|
||||||
|
craftingRecipesReapplied: number;
|
||||||
equipmentAdded: number;
|
equipmentAdded: number;
|
||||||
|
equipmentPatched: number;
|
||||||
explorationAreasAdded: number;
|
explorationAreasAdded: number;
|
||||||
questRewardsPatched: number;
|
questRewardsPatched: number;
|
||||||
questsAdded: number;
|
questsAdded: number;
|
||||||
|
questsPatched: number;
|
||||||
upgradesAdded: number;
|
upgradesAdded: number;
|
||||||
|
upgradesPatched: number;
|
||||||
zonesAdded: number;
|
zonesAdded: number;
|
||||||
|
zonesPatched: number;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2171,15 +2179,23 @@ export const GameProvider = ({
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
achievementsAdded: data.achievementsAdded,
|
achievementsAdded: data.achievementsAdded,
|
||||||
|
achievementsPatched: data.achievementsPatched,
|
||||||
|
adventurerStatsPatched: data.adventurerStatsPatched,
|
||||||
adventurersAdded: data.adventurersAdded,
|
adventurersAdded: data.adventurersAdded,
|
||||||
bossRewardsPatched: data.bossRewardsPatched,
|
bossRewardsPatched: data.bossRewardsPatched,
|
||||||
bossesAdded: data.bossesAdded,
|
bossesAdded: data.bossesAdded,
|
||||||
|
bossesPatched: data.bossesPatched,
|
||||||
|
craftingRecipesReapplied: data.craftingRecipesReapplied,
|
||||||
equipmentAdded: data.equipmentAdded,
|
equipmentAdded: data.equipmentAdded,
|
||||||
|
equipmentPatched: data.equipmentPatched,
|
||||||
explorationAreasAdded: data.explorationAreasAdded,
|
explorationAreasAdded: data.explorationAreasAdded,
|
||||||
questRewardsPatched: data.questRewardsPatched,
|
questRewardsPatched: data.questRewardsPatched,
|
||||||
questsAdded: data.questsAdded,
|
questsAdded: data.questsAdded,
|
||||||
|
questsPatched: data.questsPatched,
|
||||||
upgradesAdded: data.upgradesAdded,
|
upgradesAdded: data.upgradesAdded,
|
||||||
|
upgradesPatched: data.upgradesPatched,
|
||||||
zonesAdded: data.zonesAdded,
|
zonesAdded: data.zonesAdded,
|
||||||
|
zonesPatched: data.zonesPatched,
|
||||||
};
|
};
|
||||||
} catch (error_: unknown) {
|
} catch (error_: unknown) {
|
||||||
setError(
|
setError(
|
||||||
@@ -2189,15 +2205,23 @@ export const GameProvider = ({
|
|||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
achievementsAdded: 0,
|
achievementsAdded: 0,
|
||||||
|
achievementsPatched: 0,
|
||||||
|
adventurerStatsPatched: 0,
|
||||||
adventurersAdded: 0,
|
adventurersAdded: 0,
|
||||||
bossRewardsPatched: 0,
|
bossRewardsPatched: 0,
|
||||||
bossesAdded: 0,
|
bossesAdded: 0,
|
||||||
|
bossesPatched: 0,
|
||||||
|
craftingRecipesReapplied: 0,
|
||||||
equipmentAdded: 0,
|
equipmentAdded: 0,
|
||||||
|
equipmentPatched: 0,
|
||||||
explorationAreasAdded: 0,
|
explorationAreasAdded: 0,
|
||||||
questRewardsPatched: 0,
|
questRewardsPatched: 0,
|
||||||
questsAdded: 0,
|
questsAdded: 0,
|
||||||
|
questsPatched: 0,
|
||||||
upgradesAdded: 0,
|
upgradesAdded: 0,
|
||||||
|
upgradesPatched: 0,
|
||||||
zonesAdded: 0,
|
zonesAdded: 0,
|
||||||
|
zonesPatched: 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user