fix: resolve 3 critical bugs — #354 attunement ReferenceError, #353 preparation mana exploit, #352 golem mana wipe
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m1s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m1s
- #354: unlockAttunement now uses _get() instead of undefined 'state' variable - #353: startPreparing now deducts raw mana from the mana store after validation - #352: processGolemAttacks/processBasicAttack accept current mana as params instead of initializing to 0/{} - Updated golem-combat-actions.test.ts to pass new currentRawMana/currentElements params - Added regression tests for all 3 bugs (16 new tests, all passing)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Circular Dependencies
|
||||
Generated: 2026-06-10T11:09:41.397Z
|
||||
Generated: 2026-06-10T11:13:04.646Z
|
||||
Found: 3 circular chain(s) — these MUST be fixed before modifying involved files.
|
||||
|
||||
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"_meta": {
|
||||
"generated": "2026-06-10T11:09:38.970Z",
|
||||
"generated": "2026-06-10T11:13:02.589Z",
|
||||
"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."
|
||||
},
|
||||
|
||||
@@ -198,6 +198,9 @@ Mana-Loop/
|
||||
│ │ │ │ ├── achievements.test.ts
|
||||
│ │ │ │ ├── activity-log.test.ts
|
||||
│ │ │ │ ├── attunement-conversion-fix.test.ts
|
||||
│ │ │ │ ├── bug-352-golem-mana-wipe.test.ts
|
||||
│ │ │ │ ├── bug-353-preparation-mana.test.ts
|
||||
│ │ │ │ ├── bug-354-unlock-attunement.test.ts
|
||||
│ │ │ │ ├── bug-fixes.test.ts
|
||||
│ │ │ │ ├── combat-actions.test.ts
|
||||
│ │ │ │ ├── combat-utils.test.ts
|
||||
|
||||
Reference in New Issue
Block a user