fix: extend force-unlock to cover upgrades, equipment, and story chapters
CI / Lint, Build & Test (pull_request) Failing after 1m8s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m10s

The force-unlock debug tool now also corrects three additional categories
of stuck state:

- Upgrades: scans defeated bosses and completed quests for upgrade
  rewards and marks those upgrades as unlocked
- Equipment: scans defeated bosses for equipment rewards and marks those
  items as owned (without auto-equipping)
- Story chapters: checks every chapter's unlock condition against the
  current game state and adds any missing IDs to unlockedChapterIds

The result message in the debug panel now reports all eight corrected
categories.
This commit is contained in:
2026-03-20 10:00:08 -07:00
committed by Naomi Carrigan
parent 715ccd3fc7
commit 16c95f4fb3
4 changed files with 191 additions and 28 deletions
+15
View File
@@ -430,6 +430,21 @@ interface ForceUnlocksResponse {
*/
adventurersUnlocked: number;
/**
* Number of upgrades that were unlocked by this operation.
*/
upgradesUnlocked: number;
/**
* Number of equipment items that were marked as owned by this operation.
*/
equipmentUnlocked: number;
/**
* Number of story chapters that were unlocked by this operation.
*/
storyUnlocked: number;
/**
* HMAC-SHA256 signature of the corrected state for anti-cheat chain continuity.
*/