fix: remove debug Skip to Floor 100 and Reset Floor HP buttons
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s

- Remove debugSetFloor and resetFloorHP actions from combatStore.ts
- Remove their type definitions from combat-state.types.ts
- Remove Skip to Floor 100 and Reset Floor HP buttons from GameStateDebugSection.tsx
- Remove same buttons from legacy GameStateDebug.tsx
- Remove floor quick-jump and Reset Floor HP from SpireDebugSection.tsx
- Remove associated tests from DebugTab.test.ts, store-actions.test.ts, store-actions-combat-prestige.test.ts
- Add missing src/test/setup.ts required by vitest config

These debug buttons created inconsistent game states by teleporting players
to floors without proper initialization (no spireMode, no room state, no
clearedFloors, no guardian encounters). resetFloorHP could be spammed to
infinitely retry any floor for free.
This commit is contained in:
2026-05-29 14:54:52 +02:00
parent a33e9429fe
commit e0e7beb495
10 changed files with 209 additions and 343 deletions
+202 -203
View File
@@ -14,7 +14,6 @@ Mana-Loop/
│ ├── circular-deps.txt
│ ├── dependency-graph.json
│ └── project-structure.txt
├── e2e/
├── playwright-report/
│ ├── data/
│ │ ├── 1513ea5b9ea5985996f67ca36f2bc4d34add51f1.webm
@@ -87,7 +86,6 @@ Mana-Loop/
│ │ │ │ ├── PactDebug.tsx
│ │ │ │ ├── debug-context.tsx
│ │ │ │ └── index.tsx
│ │ │ ├── shared/
│ │ │ ├── tabs/
│ │ │ │ ├── CraftingTab/
│ │ │ │ │ ├── EnchanterSubTab.tsx
@@ -192,207 +190,208 @@ Mana-Loop/
│ ├── hooks/
│ │ ├── use-mobile.ts
│ │ └── use-toast.ts
── lib/
├── game/
│ ├── __tests__/
│ │ ├── store-method-tests/
│ │ ├── achievements.test.ts
│ │ ├── activity-log.test.ts
│ │ ├── bug-fixes.test.ts
│ │ ├── combat-actions.test.ts
│ │ ├── combat-utils.test.ts
│ │ ├── computed-stats.test.ts
│ │ ├── crafting-utils-basic.test.ts
│ │ ├── crafting-utils-equipment.test.ts
│ │ ├── crafting-utils-recipe.test.ts
│ │ ├── crafting-utils-time.test.ts
│ │ ├── cross-module-combat-meditation.test.ts
│ │ ├── cross-module-helpers.ts
│ │ ├── cross-module-lifecycle-consistency.test.ts
│ │ ├── cross-module-prestige-discipline.test.ts
│ │ ├── discipline-math.test.ts
│ │ ├── discipline-prerequisites.test.ts
│ │ ├── discipline-reactivate-bug.test.ts
│ │ ├── enemy-barrier-utils.test.ts
│ │ ├── enemy-generator.test.ts
│ │ ├── enemy-utils.test.ts
│ │ ├── floor-utils.test.ts
│ │ ├── floor-utils.upgraded.test.ts
│ │ ├── formatting.test.ts
│ │ ├── guardian-names.test.ts
│ │ ├── mana-utils.test.ts
│ │ ├── pact-utils.test.ts
│ │ ├── persistence.test.ts
│ │ ├── regression-fixes.test.ts
│ │ ├── room-utils-floor-state.test.ts
│ │ ├── room-utils.test.ts
│ │ ├── spire-utils.test.ts
│ │ ├── store-actions-combat-prestige.test.ts
│ │ ├── store-actions-discipline.test.ts
│ │ ├── store-actions-mana.test.ts
│ │ ── store-actions.test.ts
│ │ ── tick-integration.test.ts
│ ├── constants/
│ │ ├── spells-modules/
│ │ │ ├── advanced-spells.ts
│ │ │ ├── aoe-spells.ts
│ │ │ ├── basic-elemental-spells.ts
│ │ │ ├── compound-spells.ts
│ │ │ ├── enchantment-spells.ts
│ │ │ ├── legendary-spells.ts
│ │ │ ├── lightning-spells.ts
│ │ │ ├── master-spells.ts
│ │ │ ── raw-spells.ts
│ │ │ ── utility-spells.ts
│ │ ├── core.ts
│ │ ├── elements.ts
│ │ ├── index.ts
│ │ ├── prestige.ts
│ │ ── rooms.ts
│ │ ── spells.ts
│ ├── crafting-actions/
│ │ ├── application-actions.ts
│ │ ├── computed-getters.ts
│ │ ├── crafting-equipment-actions.ts
│ │ ├── crafting-material-actions.ts
│ │ ├── design-actions.ts
│ │ ├── disenchant-actions.ts
│ │ ├── equipment-actions.ts
│ │ ── index.ts
│ │ ── preparation-actions.ts
│ ├── data/
│ │ ├── disciplines/
│ │ │ ├── base.ts
│ │ │ ├── elemental-regen-advanced.ts
│ │ │ ├── elemental-regen.ts
│ │ │ ├── elemental.ts
│ │ │ ├── enchanter-special.ts
│ │ │ ├── enchanter-spells.ts
│ │ │ ├── enchanter-utility.ts
│ │ │ ├── enchanter.ts
│ │ │ ├── fabricator.ts
│ │ │ ── index.ts
│ │ │ ── invoker.ts
│ │ ├── enchantments/
│ │ │ ├── spell-effects/
│ │ │ │ ├── basic-spells.ts
│ │ │ │ ├── index.ts
│ │ │ │ ├── legendary-spells.ts
│ │ │ │ ├── lightning-spells.ts
│ │ │ │ ├── metal-spells.ts
│ │ │ │ ├── sand-spells.ts
│ │ │ │ ├── tier2-spells.ts
│ │ │ │ ── tier3-spells.ts
│ │ │ │ ── types.ts
│ │ │ ├── combat-effects.ts
│ │ │ ├── defense-effects.ts
│ │ │ ├── elemental-effects.ts
│ │ │ ├── index.ts
│ │ │ ├── mana-effects.ts
│ │ │ ── special-effects.ts
│ │ │ ── utility-effects.ts
│ │ ├── equipment/
│ │ │ ├── accessories.ts
│ │ │ ├── body.ts
│ │ │ ├── casters.ts
│ │ │ ├── catalysts.ts
│ │ │ ├── equipment-types-data.ts
│ │ │ ├── feet.ts
│ │ │ ├── hands.ts
│ │ │ ├── head.ts
│ │ │ ├── index.ts
│ │ │ ├── shields.ts
│ │ │ ├── swords.ts
│ │ │ ── types.ts
│ │ │ ── utils.ts
│ │ ├── golems/
│ │ │ ├── base-golems.ts
│ │ │ ├── elemental-golems.ts
│ │ │ ├── golems-data.ts
│ │ │ ├── hybrid-golems.ts
│ │ │ ├── index.ts
│ │ │ ── types.ts
│ │ │ ── utils.ts
│ │ ├── achievements.ts
│ │ ├── attunements.ts
│ │ ├── crafting-recipes.ts
│ │ ├── enchantment-effects.ts
│ │ ├── enchantment-types.ts
│ │ ├── fabricator-material-recipes.ts
│ │ ├── fabricator-physical-recipes.ts
│ │ ├── fabricator-recipe-types.ts
│ │ ├── fabricator-recipes.ts
│ │ ├── fabricator-wizard-recipes.ts
│ │ ├── guardian-data.ts
│ │ ── guardian-encounters.ts
│ │ ── loot-drops.ts
│ ├── effects/
│ │ ├── discipline-effects.ts
│ │ ├── dynamic-compute.ts
│ │ ├── special-effects.ts
│ │ ── upgrade-effects.ts
│ │ ── upgrade-effects.types.ts
── hooks/
│ │ ── useGameDerived.ts
│ ├── stores/
│ │ ── pipelines/
│ │ │ ── pact-ritual.ts
│ │ ├── attunementStore.ts
│ │ ├── combat-actions.ts
│ │ ├── combat-state.types.ts
│ │ ├── combatStore.ts
│ │ ├── crafting-equipment-tick.ts
│ │ ├── crafting-initial-state.ts
│ │ ├── craftingStore.ts
│ │ ├── craftingStore.types.ts
│ │ ├── discipline-slice.ts
│ │ ├── gameActions.ts
│ │ ├── gameHooks.ts
│ │ ├── gameLoopActions.ts
│ │ ├── gameStore.ts
│ │ ├── gameStore.types.ts
│ │ ├── index.ts
│ │ ├── manaStore.ts
│ │ ├── prestigeStore.ts
│ │ ── tick-pipeline.ts
│ │ ── uiStore.ts
│ ├── types/
│ │ ├── attunements.ts
│ │ ├── disciplines.ts
│ │ ├── elements.ts
│ │ ├── equipment.ts
│ │ ├── equipmentSlot.ts
│ │ ├── game.ts
│ │ ── index.ts
│ │ ── spells.ts
│ ├── utils/
│ │ ├── activity-log.ts
│ │ ├── combat-utils.ts
│ │ ├── discipline-math.ts
│ │ ├── element-cap-bonus.ts
│ │ ├── enemy-generator.ts
│ │ ├── enemy-utils.ts
│ │ ├── floor-utils.ts
│ │ ├── formatting.ts
│ │ ├── index.ts
│ │ ├── mana-utils.ts
│ │ ├── pact-utils.ts
│ │ ├── result.ts
│ │ ├── room-utils.ts
│ │ ── safe-persist.ts
│ │ ── spire-utils.ts
│ ├── constants.ts
│ ├── crafting-apply.ts
│ ├── crafting-attunements.ts
│ ├── crafting-design.ts
│ ├── crafting-equipment.ts
│ ├── crafting-fabricator.ts
│ ├── crafting-loot.ts
│ ├── crafting-prep.ts
│ ├── crafting-utils.ts
── effects.ts
│ └── types.ts
└── utils.ts
── lib/
├── game/
│ ├── __tests__/
│ │ ├── achievements.test.ts
│ │ ├── activity-log.test.ts
│ │ ├── bug-fixes.test.ts
│ │ ├── combat-actions.test.ts
│ │ ├── combat-utils.test.ts
│ │ ├── computed-stats.test.ts
│ │ ├── crafting-utils-basic.test.ts
│ │ ├── crafting-utils-equipment.test.ts
│ │ ├── crafting-utils-recipe.test.ts
│ │ ├── crafting-utils-time.test.ts
│ │ ├── cross-module-combat-meditation.test.ts
│ │ ├── cross-module-helpers.ts
│ │ ├── cross-module-lifecycle-consistency.test.ts
│ │ ├── cross-module-prestige-discipline.test.ts
│ │ ├── discipline-math.test.ts
│ │ ├── discipline-prerequisites.test.ts
│ │ ├── discipline-reactivate-bug.test.ts
│ │ ├── enemy-barrier-utils.test.ts
│ │ ├── enemy-generator.test.ts
│ │ ├── enemy-utils.test.ts
│ │ ├── floor-utils.test.ts
│ │ ├── floor-utils.upgraded.test.ts
│ │ ├── formatting.test.ts
│ │ ├── guardian-names.test.ts
│ │ ├── mana-utils.test.ts
│ │ ├── pact-utils.test.ts
│ │ ├── persistence.test.ts
│ │ ├── regression-fixes.test.ts
│ │ ├── room-utils-floor-state.test.ts
│ │ ├── room-utils.test.ts
│ │ ├── spire-utils.test.ts
│ │ ├── store-actions-combat-prestige.test.ts
│ │ ├── store-actions-discipline.test.ts
│ │ ├── store-actions-mana.test.ts
│ │ ├── store-actions.test.ts
│ │ ── tick-integration.test.ts
│ │ │ ── constants/
│ │ │ ├── spells-modules/
│ │ │ │ ├── advanced-spells.ts
│ │ │ ├── aoe-spells.ts
│ │ │ ├── basic-elemental-spells.ts
│ │ │ ├── compound-spells.ts
│ │ │ ├── enchantment-spells.ts
│ │ │ ├── legendary-spells.ts
│ │ │ ├── lightning-spells.ts
│ │ │ ├── master-spells.ts
│ │ │ ├── raw-spells.ts
│ │ │ ── utility-spells.ts
│ │ │ │ ── core.ts
│ │ ├── elements.ts
│ │ ├── index.ts
│ │ ├── prestige.ts
│ │ ├── rooms.ts
│ │ ── spells.ts
│ │ │ ── crafting-actions/
│ │ │ ├── application-actions.ts
│ │ ├── computed-getters.ts
│ │ ├── crafting-equipment-actions.ts
│ │ ├── crafting-material-actions.ts
│ │ ├── design-actions.ts
│ │ ├── disenchant-actions.ts
│ │ ├── equipment-actions.ts
│ │ ├── index.ts
│ │ ── preparation-actions.ts
│ │ │ ── data/
│ │ │ ├── disciplines/
│ │ │ │ ├── base.ts
│ │ │ ├── elemental-regen-advanced.ts
│ │ │ ├── elemental-regen.ts
│ │ │ ├── elemental.ts
│ │ │ ├── enchanter-special.ts
│ │ │ ├── enchanter-spells.ts
│ │ │ ├── enchanter-utility.ts
│ │ │ ├── enchanter.ts
│ │ │ ├── fabricator.ts
│ │ │ ├── index.ts
│ │ │ ── invoker.ts
│ │ │ │ ── enchantments/
│ │ │ │ ├── spell-effects/
│ │ │ │ │ ├── basic-spells.ts
│ │ │ │ ├── index.ts
│ │ │ │ ├── legendary-spells.ts
│ │ │ │ ├── lightning-spells.ts
│ │ │ │ ├── metal-spells.ts
│ │ │ │ ├── sand-spells.ts
│ │ │ │ ├── tier2-spells.ts
│ │ │ │ ├── tier3-spells.ts
│ │ │ │ ── types.ts
│ │ │ │ │ ── combat-effects.ts
│ │ │ ├── defense-effects.ts
│ │ │ ├── elemental-effects.ts
│ │ │ ├── index.ts
│ │ │ ├── mana-effects.ts
│ │ │ ├── special-effects.ts
│ │ │ ── utility-effects.ts
│ │ │ │ ── equipment/
│ │ │ │ ├── accessories.ts
│ │ │ ├── body.ts
│ │ │ ├── casters.ts
│ │ │ ├── catalysts.ts
│ │ │ ├── equipment-types-data.ts
│ │ │ ├── feet.ts
│ │ │ ├── hands.ts
│ │ │ ├── head.ts
│ │ │ ├── index.ts
│ │ │ ├── shields.ts
│ │ │ ├── swords.ts
│ │ │ ├── types.ts
│ │ │ ── utils.ts
│ │ │ │ ── golems/
│ │ │ │ ├── base-golems.ts
│ │ │ ├── elemental-golems.ts
│ │ │ ├── golems-data.ts
│ │ │ ├── hybrid-golems.ts
│ │ │ ├── index.ts
│ │ │ ├── types.ts
│ │ │ ── utils.ts
│ │ │ │ ── achievements.ts
│ │ ├── attunements.ts
│ │ ├── crafting-recipes.ts
│ │ ├── enchantment-effects.ts
│ │ ├── enchantment-types.ts
│ │ ├── fabricator-material-recipes.ts
│ │ ├── fabricator-physical-recipes.ts
│ │ ├── fabricator-recipe-types.ts
│ │ ├── fabricator-recipes.ts
│ │ ├── fabricator-wizard-recipes.ts
│ │ ├── guardian-data.ts
│ │ ├── guardian-encounters.ts
│ │ ── loot-drops.ts
│ │ │ ── effects/
│ │ │ ├── discipline-effects.ts
│ │ ├── dynamic-compute.ts
│ │ ├── special-effects.ts
│ │ ├── upgrade-effects.ts
│ │ ── upgrade-effects.types.ts
│ │ │ ── hooks/
│ │── useGameDerived.ts
│ │ │ ── stores/
│ │ │ ├── pipelines/
│ │ │ │ ── pact-ritual.ts
│ │ │ │ ── attunementStore.ts
│ │ ├── combat-actions.ts
│ │ ├── combat-state.types.ts
│ │ ├── combatStore.ts
│ │ ├── crafting-equipment-tick.ts
│ │ ├── crafting-initial-state.ts
│ │ ├── craftingStore.ts
│ │ ├── craftingStore.types.ts
│ │ ├── discipline-slice.ts
│ │ ├── gameActions.ts
│ │ ├── gameHooks.ts
│ │ ├── gameLoopActions.ts
│ │ ├── gameStore.ts
│ │ ├── gameStore.types.ts
│ │ ├── index.ts
│ │ ├── manaStore.ts
│ │ ├── prestigeStore.ts
│ │ ├── tick-pipeline.ts
│ │ ── uiStore.ts
│ │ │ ── types/
│ │ │ ├── attunements.ts
│ │ ├── disciplines.ts
│ │ ├── elements.ts
│ │ ├── equipment.ts
│ │ ├── equipmentSlot.ts
│ │ ├── game.ts
│ │ ├── index.ts
│ │ ── spells.ts
│ │ │ ── utils/
│ │ │ ├── activity-log.ts
│ │ ├── combat-utils.ts
│ │ ├── discipline-math.ts
│ │ ├── element-cap-bonus.ts
│ │ ├── enemy-generator.ts
│ │ ├── enemy-utils.ts
│ │ ├── floor-utils.ts
│ │ ├── formatting.ts
│ │ ├── index.ts
│ │ ├── mana-utils.ts
│ │ ├── pact-utils.ts
│ │ ├── result.ts
│ │ ├── room-utils.ts
│ │ ├── safe-persist.ts
│ │ ── spire-utils.ts
│ │ │ ── constants.ts
│ ├── crafting-apply.ts
│ ├── crafting-attunements.ts
│ ├── crafting-design.ts
│ ├── crafting-equipment.ts
│ ├── crafting-fabricator.ts
│ ├── crafting-loot.ts
│ ├── crafting-prep.ts
│ ├── crafting-utils.ts
│ ├── effects.ts
── types.ts
│ │ └── utils.ts
└── test/
│ └── setup.ts
├── test-results/
│ └── .last-run.json
├── .dockerignore