fix: discipline tab NaN display — correct statBonus.baseValue destructuring, rate-aware /sec labels, NaN guards
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s

- Fix root cause: baseValue was undefined (destructured from definition
  instead of statBonus.baseValue), causing calculateStatBonus to produce NaN
- Remove hardcoded /sec suffix from stat bonus display; now detects rate
  vs flat stats using isRateStat() helper
- Fix computePerkCurrentEffect: perks only show /sec for actual rate stats
- Add NaN guards in DisciplineCard display layer as safety net
- Clean up DisciplinesTab UX (proper summary label, remove unused rawMana)
This commit is contained in:
2026-05-28 18:38:28 +02:00
parent bc184cefb0
commit 8fef73d233
4 changed files with 50 additions and 19 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# Circular Dependencies
Generated: 2026-05-28T13:28:24.658Z
Generated: 2026-05-28T16:14:24.376Z
No circular dependencies found. ✅
+2 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-05-28T13:28:22.544Z",
"generated": "2026-05-28T16:14:22.630Z",
"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."
},
@@ -556,6 +556,7 @@
"constants.ts",
"effects/discipline-effects.ts",
"stores/combatStore.ts",
"stores/discipline-slice.ts",
"stores/gameStore.types.ts",
"stores/manaStore.ts",
"stores/prestigeStore.ts",