🐛 RAW MANA MASTERY perks: regenMultiplier missing from unified effects pipeline #166
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
Raw Mana Mastery and Mana Circulation perks seem very weak or non-functional. Investigation reveals:
Issue 1:
regenMultipliernot in unified effectsThe
mana-circulation-regenperk addsregenMultipliertodisciplineEffects.multipliers. This is only applied in the tick pipeline (gameStore.ts:122) via a manual extra line. It is not merged incomputeAllEffects()ateffects.ts:131— the unified effectsregenMultiplieronly includesupgradeEffects.regenMultiplierandequipmentEffects.multipliers.regen, missing the discipline contribution entirely.This means:
gameHooks.ts:70,useGameDerived.ts:47) that use the unified path don't show the bonuscomputeAllEffects()will miss the discipline regen multiplierIssue 2: Base values are numerically weak
regenBonushasbaseValue: 0.2with formula0.2 * (XP/50)^0.65— at 1000 XP, this is only1.74regen. TheregenMultiplierperk adds+0.10 * tiers, starting from a tiny base.Fix
disciplineEffects.multipliers.regenMultiplierintocomputeAllEffects()ateffects.ts:131baseValueforregenBonusandregenMultiplieramountFiles
src/lib/game/effects.ts:131(missing merge)src/lib/game/stores/gameHooks.ts:70(display hook)src/lib/game/hooks/useGameDerived.ts:47(display hook)src/lib/game/data/disciplines/base.ts:53-68(perk definitions)Fixed in commit
8cebea9. MergeddisciplineEffects.multipliers.regenMultiplierintocomputeAllEffects()so the discipline regen multiplier is included in the unified effects pipeline.