[priority: medium] feat: Add Raw Mana Regen discipline with perks #140
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
Add a new Raw Mana Regen discipline (thematic name suggestion: "Mana Circulation", "Inner Reservoir", or "Vitality Flow") to the BASE attunement tab. This discipline increases the raw mana regen rate and has two perks:
Thematic Context
This is a BASE discipline available to all attunements. It represents the practitioner's ability to cultivate and circulate raw mana through their body — the foundation upon which all elemental work is built.
Stat Bonuses
statBonus.stat:regenBonus(the existing raw mana regen stat key)statBonus.baseValue: tuned appropriately (suggest 0.2/tick as base)Perk Implementation Notes
Infinite perk (regen % boost):
infinite{ stat: 'regenMultiplier', amount: 0.10 }(10% per tier)Capped perk (meditation multiplier):
cappedgetMeditationBonus())What Needs to Change
src/lib/game/data/disciplines/base.ts— add the new discipline definitionsrc/lib/game/types/disciplines.ts— addBonusSpectype for structured perk bonuses (see issue #1)src/lib/game/utils/mana-utils.ts—getMeditationBonus()needs to accept a configurable max multiplier parameter (defaulting to current behavior)src/lib/game/stores/gameStore.ts— pass the discipline-provided meditation cap into the tick's meditation calculationsrc/lib/game/effects/discipline-effects.ts— handle the newregenMultiplierand meditation cap bonuses (blocked on issue #1)Files
src/lib/game/data/disciplines/base.tssrc/lib/game/types/disciplines.tssrc/lib/game/utils/mana-utils.tssrc/lib/game/stores/gameStore.tssrc/lib/game/effects/discipline-effects.tsfeat: Add Raw Mana Regen discipline with perksto [priority: medium] feat: Add Raw Mana Regen discipline with perksStarting implementation of Raw Mana Regen discipline (Mana Circulation). Plan:
Implementation complete. Added the Mana Circulation discipline to the base attunement tab with:
base.ts— Newmana-circulationdiscipline definition with:regenBonusstat (0.2/tick base) for raw mana regen scalingregenMultiplier+0.10)discipline-effects.ts— HandlesregenMultiplier(routed to multipliers) andmeditationCapBonus(dedicated field on result). AddedmaxTiersupport for capped perks.mana-utils.ts—getMeditationBonus()now acceptsdisciplineMeditationCapparameter. The meditation cap formula:maxMultiplier = 5.0 + disciplineMeditationCap.gameStore.ts— WiresdisciplineEffects.meditationCapBonusinto tick meditation calc, and appliesregenMultiplierto base regen.Display callers (
page.tsx,LeftPanel.tsx,useGameDerived.ts,gameHooks.ts) — Updated to pass discipline meditation cap.disciplines.tstype — Added optionalmaxTierfield toDisciplinePerk.All files under 400 lines. No new TypeScript errors (2 pre-existing errors unrelated to these changes).