[priority: high] Missing mana regen disciplines for each mana type #130
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?
Feature: No mana regen disciplines exist for individual mana types
Description
According to the game design, there should be a mana regen discipline for each mana type (once that mana type is unlocked). Currently, there are zero disciplines that provide mana regeneration bonuses for any specific element.
Current State
Looking at all discipline data files:
data/disciplines/base.ts— Raw Mana Mastery (maxManaBonus), Elemental Attunement (elementCap_fire)data/disciplines/enchanter.ts— Enchantment Crafting, Mana Channeling, Study Basic/Advanced Weapon Enchantmentsdata/disciplines/enchanter-utility.ts— Study Utility Enchantments, Study Mana Enchantmentsdata/disciplines/enchanter-spells.ts— Study Basic/Intermediate/Advanced Spell Enchantmentsdata/disciplines/enchanter-special.ts— Study Special Enchantmentsdata/disciplines/fabricator.ts— Golem Crafting, Crafting Efficiencydata/disciplines/invoker.ts— Spell Casting, Void ManipulationNone of these provide
regenbonuses for specific mana types. The only regen-related stat isregenBonus(generic) in the effects system.Expected Behavior
For each mana type (fire, water, air, earth, light, dark, death, transference, metal, sand, lightning, crystal, stellar, void), there should be a discipline that:
statBonus.statlikeregen_fire,regen_water, etc.Files Involved
src/lib/game/data/disciplines/base.ts— could host the patterndata/disciplines/elemental-regen.ts)src/lib/game/data/disciplines/index.ts— needs to export new disciplinessrc/lib/game/effects/discipline-effects.ts— may need to handleregen_{element}stat keyssrc/lib/game/effects.ts—computeAllEffects()may need to merge per-element regenDesign Notes
requiresfield onDisciplineDefinitioncould gate these behind element unlocksStarting implementation of per-element mana regen disciplines. Plan:
data/disciplines/elemental-regen.tswith regen disciplines for all 14 non-raw mana typesALL_DISCIPLINESvia index.ts and discipline-slice.tsregen_{element}stat keys✅ Implemented per-element mana regen disciplines for all 14 non-raw mana types.
Files changed (12):
data/disciplines/elemental-regen.ts— 8 base/utility element regen disciplines (fire, water, air, earth, light, dark, death, transference)data/disciplines/elemental-regen-advanced.ts— 6 composite/exotic regen disciplines (metal, sand, lightning, crystal, stellar, void)data/disciplines/index.ts— wired into ALL_DISCIPLINESstores/discipline-slice.ts— included in local ALL_DISCIPLINES/DISCIPLINE_MAPeffects/upgrade-effects.types.ts— addedperElementRegenBonusto ComputedEffectseffects/upgrade-effects.ts— initializedperElementRegenBonus: {}effects.ts— mergedregen_{element}discipline bonuses into unified effectsstores/gameStore.ts— applied per-element regen to element mana each tickcomponents/game/tabs/DisciplinesTab.tsx— added "Elemental Regen" and "Advanced Regen" tabsDesign:
regen_{element}stat bonus via the existing statBonus systembaseValue * (XP / scalingFactor)^0.65— same formula as all disciplinesrequiresfield