generated from nhcarrigan/template
fix: turn off auto-boss/auto-quest on failure and surface status
Auto-boss now disables itself when a boss fight is lost (instead of silently looping), and turns off with an error message when the API call itself fails (e.g. party has no adventurers). Auto-quest disables itself whenever a quest fails the random chance check. In both cases the player sees a clear status/error line in the boss panel rather than a silent toggle, and can re-enable when ready. Also initialises autoBoss/autoQuest to false in initialGameState so these fields survive save/load cycles from the very first session. Closes #40
This commit is contained in:
@@ -76,6 +76,8 @@ const initialGameState = (
|
||||
achievements: structuredClone(defaultAchievements),
|
||||
adventurers: structuredClone(defaultAdventurers),
|
||||
apotheosis: { ...initialApotheosis },
|
||||
autoBoss: false,
|
||||
autoQuest: false,
|
||||
baseClickPower: 1,
|
||||
bosses: structuredClone(defaultBosses),
|
||||
companions: { activeCompanionId: null, unlockedCompanionIds: [] },
|
||||
|
||||
Reference in New Issue
Block a user