TASK-007: gameStore.ts still uses old computeEffects(), not new computeStats() #3
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?
Runtime Still Uses Old Effect System
The main game tick loop in
src/lib/game/stores/gameStore.ts(line ~80-90) still computes effects using the old system:This calls
computeEffects()fromsrc/lib/game/upgrade-effects.ts, which reads fromSKILL_EVOLUTION_PATHSand the old milestone upgrade system. It does NOT use the newcomputeStats()fromskills-v2.ts.The new
computeStats()insrc/lib/game/constants/skills-v2.tsexists with tests passing, but it is never called at runtime. The game loop still:computeEffects()for upgrade effectscomputeMaxMana(),computeRegen(),computeClickMana()fromstore-modules/computed-stats.tswhich bypasscomputeStats()skills.manaWell,skills.manaFlow) instead of going throughcomputeStats()What needs to happen:
computeEffects()call ingameStore.tstick loop withcomputeStats()gameActions.tscreateGatherMana()to usecomputeStats()instead of inline skill readingcombat-actions.tsto receive stats fromcomputeStats()instead of reading skills directlyuseManaStats()ingameHooks.tsuses the unified pathAcceptance criteria:
gameStore.tstick function callscomputeStats()as the single stat computation entry pointcomputeStats()Closed and replaced by Issue #15: Migrate Legacy Skills System to Active Disciplines. The old computeEffects/computeStats pipeline is replaced by discipline-effects.ts.