BUG: Meditation multiplier shows "0x" and Effective Regen shows "0/hr" #208
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Meditation Multiplier in the Stats tab displays "0x" instead of "1x" at game start, and Effective Regen shows "0/hr" despite Base Regen being 2/hr with 0% incursion.
Root Cause
getMeditationBonusinsrc/lib/game/utils/mana-utils.tshas the signature:But it is called with 4 arguments in 3 places, passing
{}(empty object) as the second argument:The
{}object coerces toNaN, so the function returnsNaN, which displays as0xand causes all downstream regen calculations to be 0.Affected Files
src/lib/game/hooks/useGameDerived.tsline 59src/app/page.tsxline 94src/app/components/LeftPanel.tsxline 61Note:
src/lib/game/stores/gameHooks.tsline 77 andsrc/lib/game/stores/gameStore.tsline 155 call it correctly with 3 args.Fix
Change the 3 affected call sites to match the working pattern:
Reproduction
✅ Playwright Confirmation (QA Run 2026-05-30)
Status: CONFIRMED - The Stats tab shows broken meditation/regen values at game start.
Playwright Evidence
["+0", "+1"]— the+0value confirms the meditation multiplier is broken (should be ~"2.00/hr" at game start)+1value (likely click mana) is unaffectedRoot Cause Verified
Confirmed in code:
getMeditationBonus()is called with 4 args (including{}as 2nd arg) but only accepts 3 params. The{}coerces toNaN, breaking all meditation calculations.Additional Affected Call Sites Found
Beyond the 3 files mentioned in the original report, I also found:
src/app/page.tsxline 94src/app/components/LeftPanel.tsxline 61Both have the same
{}bug pattern.Fixed as part of BUG #212 fix. Removed erroneous
{}argument from getMeditationBonus in all 3 affected files.