fix: resolve elemental mana conversion pause bug (#348)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s
Two root causes fixed:
1. gameStore.ts: computeRegen now receives actual attunements instead of empty {}, so rawGrossRegen includes attunement contributions (was ~2/hr, now correct 3000+/hr)
2. gameStore.ts buildConversionParams: use rawManaRegen with level scaling (1.5^(level-1)) instead of conversionRate for per-element grossRegen
3. LeftPanel.tsx: same grossRegen fix + include attunement regen in rawGrossRegen display
4. ElementStatsSection.tsx: same grossRegen fix
5. useGameDerived.ts: pass actual attunements to computeRegen for baseRegen calculation
Added regression test: conversion-pause-bug-regression.test.ts (7 tests)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Circular Dependencies
|
||||
Generated: 2026-06-10T08:14:33.822Z
|
||||
Generated: 2026-06-10T08:50:57.213Z
|
||||
Found: 2 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-10T08:14:31.514Z",
|
||||
"generated": "2026-06-10T08:50:54.740Z",
|
||||
"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."
|
||||
},
|
||||
|
||||
@@ -202,6 +202,7 @@ Mana-Loop/
|
||||
│ │ │ │ ├── combat-actions.test.ts
|
||||
│ │ │ │ ├── combat-utils.test.ts
|
||||
│ │ │ │ ├── computed-stats.test.ts
|
||||
│ │ │ │ ├── conversion-pause-bug-regression.test.ts
|
||||
│ │ │ │ ├── crafting-utils-basic.test.ts
|
||||
│ │ │ │ ├── crafting-utils-equipment.test.ts
|
||||
│ │ │ │ ├── crafting-utils-recipe.test.ts
|
||||
|
||||
Reference in New Issue
Block a user