⭐ FEATURE: Add base discipline for XP accumulation improvement #167
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 Request
There should be a base discipline to improve XP accumulation so the player can improve other disciplines faster.
Current State
No discipline boosts XP gain. Each active discipline gains exactly +1 XP per tick (hardcoded in
discipline-slice.tsat the XP increment line). The XP gain loop is completely decoupled from the bonus/effect system.What Needs to Change (minimum 4 files)
src/lib/game/data/disciplines/base.ts— Add a new discipline with a stat bonus key likedisciplineXpBonussrc/lib/game/effects/discipline-effects.ts:17-27— Register the new key inKNOWN_BONUS_STATSsrc/lib/game/stores/discipline-slice.ts— Modify the+1 XPline to read and apply the bonus from discipline effects (currently no mechanism exists to do this)src/lib/game/effects.ts— Consume the new stat key incomputeAllEffects()so it's available during tick processingDesign Notes
statBonuscontinuous scaling formula:baseValue * (XP/scalingFactor)^0.65Fixed in commit
8cebea9+b5996d5. Added Meditative Mastery base discipline with disciplineXpBonus stat that increases all discipline XP gain/tick. Wired into tick pipeline with inline calculation to avoid circular dependency.