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
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:
@@ -0,0 +1,18 @@
|
||||
# Circular Dependencies
|
||||
Generated: 2026-05-11T09:20:28.554Z
|
||||
Found: 8 circular chain(s) — these MUST be fixed before modifying involved files.
|
||||
|
||||
1. Processed 161 files (4.4s) (31 warnings)
|
||||
2. 1) data/equipment/index.ts > data/equipment/utils.ts
|
||||
3. 2) data/golems/index.ts > data/golems/utils.ts
|
||||
4. 3) stores/combat-actions.ts > stores/combatStore.ts
|
||||
5. 4) stores/combatStore.ts > stores/gameStore.ts
|
||||
6. 5) stores/combatStore.ts > stores/gameStore.ts > stores/gameActions.ts
|
||||
7. 6) stores/combatStore.ts > stores/gameStore.ts > stores/gameActions.ts > stores/skillStore.ts
|
||||
8. 7) stores/combatStore.ts > stores/gameStore.ts > stores/gameLoopActions.ts
|
||||
|
||||
## How to fix
|
||||
1. Identify which import in the chain can be extracted to a shared types/utils file.
|
||||
2. Move the shared type or function there.
|
||||
3. Both files import from the new shared module instead of each other.
|
||||
4. Run: bunx madge --circular src/lib/game (should return clean)
|
||||
Reference in New Issue
Block a user