Files
Mana-Loop/docs
n8n-gitea a45d38a9c9
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m23s
fix: discipline stat bonuses not applied to max mana and other stats in reactive UI
Bug A: useMemo with empty deps in useGameDerived.ts — disciplineEffects
and clickMana were computed once on mount and never recomputed, so the
display always showed bonuses as 0. Fixed by subscribing to discipline
store state and passing disciplineEffects to computeClickMana().

Bug B: autoPaused disciplines excluded from computeDisciplineEffects —
when a discipline auto-paused due to insufficient mana drain, it lost
all its stat bonuses even though it remained active. Fixed by changing
the filter from !disc.autoPaused to !disc.paused, so auto-paused
disciplines keep their earned bonuses (they just stop gaining XP).

Added regression tests in discipline-effects-reactivity.test.ts.
2026-06-15 10:58:44 +02:00
..