fix: prevent conversion system from auto-unlocking all mana types on first tick
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m30s

- Removed auto-unlock lines in gameStore.ts element regen loop and recovery room boost loop
- Added unlocked guard to skip locked elements during conversion processing
- Added regression test (bug-377) verifying only transference stays unlocked

Fixes #377
This commit is contained in:
2026-06-12 12:14:45 +02:00
parent b68cc948a3
commit 280847a231
5 changed files with 71 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Circular Dependencies
Generated: 2026-06-12T07:45:32.728Z
Generated: 2026-06-12T08:05:45.261Z
Found: 4 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) data/guardian-encounters.ts > data/guardian-procedural.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-06-12T07:45:30.561Z",
"generated": "2026-06-12T08:05:43.098Z",
"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."
},
+1
View File
@@ -203,6 +203,7 @@ Mana-Loop/
│ │ │ │ ├── bug-352-golem-mana-wipe.test.ts
│ │ │ │ ├── bug-353-preparation-mana.test.ts
│ │ │ │ ├── bug-354-unlock-attunement.test.ts
│ │ │ │ ├── bug-377-mana-auto-unlock.test.ts
│ │ │ │ ├── bug-fixes.test.ts
│ │ │ │ ├── combat-actions.test.ts
│ │ │ │ ├── combat-utils.test.ts