fix: deduct component consumption from element pools in mana conversion
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s

Bug #293: elementDrain was computed but never subtracted from element pools.
The tick pipeline now applies net regen (produced - drained) instead of
gross production to element pools, matching the spec §8 regen deduction model.
This commit is contained in:
2026-06-08 12:43:16 +02:00
parent b3b13b6a55
commit fa448f233c
5 changed files with 170 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Circular Dependencies
Generated: 2026-06-08T09:39:59.023Z
Generated: 2026-06-08T09:52:22.958Z
Found: 1 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-06-08T09:39:57.039Z",
"generated": "2026-06-08T09:52:20.951Z",
"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
@@ -229,6 +229,7 @@ Mana-Loop/
│ │ │ │ ├── formatting.test.ts
│ │ │ │ ├── guardian-names.test.ts
│ │ │ │ ├── hasty-enchanter.test.ts
│ │ │ │ ├── mana-conversion-component-deduction.test.ts
│ │ │ │ ├── mana-utils.test.ts
│ │ │ │ ├── melee-auto-attack.test.ts
│ │ │ │ ├── melee-defense-bypass.test.ts