Fix 3 bugs: equip crash, enchantment not processing, spire spell casting
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m43s

Bug 1: EquipmentTab handleEquip was passing useCombatStore to equipItem()
which needs the crafting store (has equipmentInstances/equippedInstances).
Fixed by using useCraftingStore instead.

Bug 2: processCraftingTick() from crafting-slice.ts was never called in the
game tick loop. Added call in tick-logic.ts when currentAction is
'design'/'prepare'/'enchant'/'craft' so enchantment progress advances.

Bug 3: equipmentSpellStates was initialized as [] and never populated from
equipped items. Added logic in tick-logic.ts to build equipmentSpellStates
from active equipment spells when climbing (currentAction === 'climb').
This commit is contained in:
2026-05-11 12:07:12 +02:00
parent ae0bf3e38d
commit f6bf049f91
5 changed files with 874 additions and 4 deletions
+5 -3
View File
@@ -5,16 +5,18 @@ Mana-Loop/
├── .husky/
│ ├── scripts/
│ │ ├── check-file-size.js
│ │ ├── generate-dependency-graph.js
│ │ └── generate-project-tree.js
│ ├── post-merge
│ └── pre-commit
├── db/
│ └── custom.db
├── docs/
│ ├── strategy/
│ │ └── overall-remediation-plan.md
│ ├── GAME_BRIEFING.md
│ ├── PLAN-SpireTab-refresh.md
│ ├── SPEC-SpireTab-refresh.md
│ ├── TASKS-SpireTab-refresh.md
│ ├── circular-deps.txt
│ ├── dependency-graph.json
│ ├── project-structure.txt
│ └── skills.md
├── download/