fix: Golemancy enchantment capacity, design persistence, and UI selectors
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m19s

- Fix enchantment capacity formula: multiply magicAffinity by 100 (spec treats it as percentage)
- Fix enterSpireMode preserving golemDesigns (only reset loadout/activeGolems per spec §9)
- Add mana type selector UI for Intermediate/Advanced/Guardian cores
- Add spell selector UI for circuits with spell slots

Fixes #310, #311, #312
This commit is contained in:
2026-06-08 10:30:59 +02:00
parent 1e99a57496
commit 411c355a15
8 changed files with 163 additions and 20 deletions
+9 -2
View File
@@ -1,4 +1,11 @@
# Circular Dependencies
Generated: 2026-06-07T21:16:10.397Z
Generated: 2026-06-08T08:12:33.305Z
Found: 1 circular chain(s) — these MUST be fixed before modifying involved files.
No circular dependencies found. ✅
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.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)
+10 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-06-07T21:16:08.368Z",
"generated": "2026-06-08T08:12:31.358Z",
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
},
@@ -550,6 +550,7 @@
"stores/combat-state.types.ts",
"stores/dot-runtime.ts",
"stores/golem-combat-actions.ts",
"stores/golem-combat-helpers.ts",
"types.ts",
"utils/index.ts"
],
@@ -719,8 +720,16 @@
"constants.ts",
"data/golems/index.ts",
"data/golems/utils.ts",
"stores/golem-combat-helpers.ts",
"types.ts"
],
"stores/golem-combat-helpers.ts": [
"data/golems/index.ts",
"stores/combat-state.types.ts",
"stores/golem-combat-actions.ts",
"types.ts",
"utils/index.ts"
],
"stores/golemancy-actions.ts": [
"types/game.ts"
],