[priority: medium] Enchanter disciplines need audit — verify all work and add value #191
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?
Task: Audit all Enchanter disciplines for correctness and value
Description
The enchanter disciplines need a thorough review to ensure:
computeDisciplineEffects()unlocksEffectsreference valid effect IDsCurrent State
enchanter.ts (4 disciplines):
enchant-crafting→stat: 'enchantPower'✓ (in KNOWN_BONUS_STATS)mana-channeling→stat: 'clickManaMultiplier'✗ (NOT in KNOWN_BONUS_STATS — this is a new key not handled anywhere)study-basic-weapon-enchantments→stat: 'enchantPower'✓study-advanced-weapon-enchantments→stat: 'enchantPower'✓enchanter-utility.ts (2 disciplines):
study-utility-enchantments→stat: 'studySpeed'✗ (NOT in KNOWN_BONUS_STATS)study-mana-enchantments→stat: 'maxManaBonus'✓enchanter-spells.ts (3 disciplines):
study-basic-spell-enchantments→stat: 'enchantPower'✓study-intermediate-spell-enchantments→stat: 'enchantPower'✓study-advanced-spell-enchantments→stat: 'enchantPower'✓enchanter-special.ts (1 discipline):
study-special-enchantments→stat: 'enchantPower'✓Issues Found
clickManaMultiplierstat: Used bymana-channelingdiscipline but not inKNOWN_BONUS_STATSindiscipline-effects.ts. This means the bonus is computed but may not flow into the unified effects system correctly.studySpeedstat: Used bystudy-utility-enchantmentsbut not inKNOWN_BONUS_STATS. Same issue.Perk
unlocksEffectsIDs: Need to verify all referenced effect IDs exist inENCHANTMENT_EFFECTS:sword_fire,sword_frost,sword_lightning,sword_void— ✓ (inelemental-effects.ts)damage_5,crit_5,attack_speed_10— ✓ (incombat-effects.ts)meditate_10,study_10,insight_5— ✓ (inutility-effects.ts)mana_cap_50,mana_cap_100,mana_regen_1,mana_regen_2,click_mana_1,click_mana_3— ✓ (inmana-effects.ts)spell_manaBolt,spell_fireball, etc. — ✓ (inspell-effects/)spell_echo_10,guardian_dmg_10,overpower_80,first_strike,combo_master,adrenaline_rush— ✓ (inspecial-effects.ts)Missing disciplines in Enchanter tab:
enchanter-utility.ts,enchanter-spells.ts,enchanter-special.tsdisciplines are not shown (see issue #7)Affected Files
src/lib/game/data/disciplines/enchanter.tssrc/lib/game/data/disciplines/enchanter-utility.tssrc/lib/game/data/disciplines/enchanter-spells.tssrc/lib/game/data/disciplines/enchanter-special.tssrc/lib/game/effects/discipline-effects.ts—KNOWN_BONUS_STATSsetSteps to Audit
statBonus.statis consumed somewhere in the effects pipelineunlocksEffectsID exists inENCHANTMENT_EFFECTSExpected Outcome
Suggested Fix Direction
clickManaMultiplier,studySpeed) toKNOWN_BONUS_STATSor handle them incomputeDisciplineEffects()✅ Fixed. Added missing stat keys and wired them into the unified effects system:
clickManaMultiplierandstudySpeedtoKNOWN_BONUS_STATSindiscipline-effects.tsdisciplineEffects.bonuses.clickManaMultiplierintocomputeAllEffects()→clickManaMultipliermerge (multiplicative:* (1 + bonus))disciplineEffects.bonuses.studySpeedintocomputeAllEffects()→studySpeedMultipliermerge (multiplicative:* (1 + bonus))Now the
mana-channelingdiscipline's clickManaMultiplier bonus and thestudy-utility-enchantmentsdiscipline's studySpeed bonus properly flow into the unified effects system.