[Medium] [Task] Mana conversion system — old actions removed, new unified system not yet implemented #287
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?
Type: Work in progress / Migration needed
Priority: Medium
Investigation findings:
The
mana-conversion-spec.mddefines a complete unified passive mana conversion system. The status is:What was done:
convertMana,processConvertAction, andcraftCompositeactions have been fully removed frommanaStore.ts(not even kept as no-ops)manaStore.tsline 4-5 confirms: "NEW MODEL: All conversion is passive through the unified conversion system."What's missing:
element-distance.ts,conversion-rates.ts,conversion-costs.tsImpact: Players cannot convert raw mana to elemental mana through any means. This is a critical gap for gameplay.
Action needed: Implement the unified passive mana conversion system per
mana-conversion-spec.md. This is a major system overhaul affecting manaStore, gameStore, prestigeStore, attunements, disciplines, and UI components.Starting implementation of the unified passive mana conversion system per mana-conversion-spec.md. This involves creating new utility files (element-distance.ts, conversion-rates.ts, conversion-costs.ts), modifying discipline data files, attunements, effects, stores, and UI components.
Implemented the per-element net regen display for the unified passive mana conversion system.
Changes made:
manaStore.ts - Added
elementRegento state and actions:elementRegen: Record<string, number>toManaStatesetElementRegen(regen: Record<string, number>)actionresetMana, and persistence to includeelementRegengameStore.ts - Updated tick pipeline to compute and store per-element net regen:
produced - drainedwrites.mana.elementRegenLeftPanel.tsx - Pass elementRegen to ManaDisplay:
elementRegenselector from manaStoreTest results:
The ManaDisplay component now receives per-element net regen data from the unified conversion system and displays it in the UI.
Implemented per-element net regen display for the unified passive mana conversion system. All core tests pass (1007), build succeeds. The ManaDisplay component now shows per-element regen rates from the conversion system.