fix: adventurer unlocks not applied by force-unlock tool
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m9s
CI / Lint, Build & Test (pull_request) Failing after 1m13s

The force-unlock debug route now scans completed quests for adventurer
rewards and ensures those tiers are marked as unlocked in game state.
The UI and API response type both surface the new adventurersUnlocked
count alongside existing zone/quest/boss/exploration counts.

Closes #88
This commit is contained in:
2026-03-20 09:44:58 -07:00
committed by Naomi Carrigan
parent bb60ae3390
commit 715ccd3fc7
4 changed files with 61 additions and 4 deletions
+3
View File
@@ -558,6 +558,7 @@ interface GameContextValue {
* @returns Counts of what was corrected.
*/
forceUnlocks: ()=> Promise<{
adventurersUnlocked: number;
bossesUnlocked: number;
explorationUnlocked: number;
questsUnlocked: number;
@@ -2104,6 +2105,7 @@ export const GameProvider = ({
localStorage.setItem("elysium_save_signature", data.signature);
}
return {
adventurersUnlocked: data.adventurersUnlocked,
bossesUnlocked: data.bossesUnlocked,
explorationUnlocked: data.explorationUnlocked,
questsUnlocked: data.questsUnlocked,
@@ -2116,6 +2118,7 @@ export const GameProvider = ({
: "Failed to force unlocks",
);
return {
adventurersUnlocked: 0,
bossesUnlocked: 0,
explorationUnlocked: 0,
questsUnlocked: 0,