Bug: totalManaGathered inflates by counting mana at cap and double-counting combat loot #224
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?
Bug Description
totalManaGathered(used in the insight formula astotalManaGathered / 500) is inflated in two ways:Counts uncapped amounts: Both
addRawManaandgatherManainmanaStore.tsalways add the fullamounttototalManaGathered, even whenrawManais already atmaxManaand the actual mana added is 0 (capped).Double-counts combat loot: Combat tick processing may call paths that increment
totalManaGatheredboth in the combat store result AND in the mana store'saddRawMana/gatherMana.Code Location
src/lib/game/stores/manaStore.tslines 96-100:Impact
Medium.
totalManaGatheredis a prestige-progress stat. Inflating it means players get more insight per loop than intended, accelerating prestige progression. Players who frequently "gather" while at max mana (common during meditation) get a particularly large inflation.Fix Required
In
addRawManaandgatherMana, count only the actually added mana:Fixed as part of #217: totalManaGathered now only counts regen that actually fits below the mana cap.