"Max meditation multiplier starts at 5x instead of 2.5x" #231
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?
Description: The meditation multiplier formula starts at 1x (correct) but the cap is hardcoded at
5.0ingetMeditationBonus(). The design intent is:Root Cause:
In
src/lib/game/utils/mana-utils.ts, thegetMeditationBonusfunction has:This means:
Files involved:
src/lib/game/utils/mana-utils.ts—getMeditationBonus()function, line ~117Fix: Change the base cap from
5.0to2.5:Impact: This is a one-line math fix. It affects:
src/app/page.tsx—useGameDerivedStats()usesgetMeditationBonus()src/app/components/LeftPanel.tsx— also usesgetMeditationBonus()src/components/game/ManaDisplay.tsx— displays the multipliersrc/lib/game/hooks/useGameDerived.ts— also computes meditation multipliersrc/lib/game/stores/gameStore.ts— tick pipeline uses it toomana-utils.test.tsandcomputed-stats.test.tsmay need updated expected valuesAGENTS.md rules: All fixes must keep files under 400 lines.
Starting work on the meditation multiplier fix. Changing base cap from 5.0 to 2.5 in getMeditationBonus().
Fixed meditation multiplier base cap from 5.0 to 2.5 in getMeditationBonus(). Updated 3 test expectations across mana-utils.test.ts and computed-stats.test.ts. All 62 tests pass.