# Sub-Task 8: Mana System Conversion Regen Deduction (Bug 10) ## Scope - **Core files affected**: - Mana system logic (e.g., `utils/manaUtils.ts`, `hooks/useMana.ts`) - Mana regeneration calculation functions - Mana state management (e.g., `store/manaSlice.ts`) - **Files potentially affected**: - `types/mana.ts` (mana type definitions, conversion rates) - Any components displaying mana regen rates (to show effective vs raw regen) - StatsTab (will be updated in Sub-Task 9 to show conversion drains) ## Acceptance Criteria 1. Mana conversion rates (from attunements) are deducted from raw mana regeneration rate 2. Example: 3.8 raw regen − 0.2 transference conversion = 3.6 effective raw regen (verify via calculation checks) 3. Effective regen is used for all mana regeneration in-game 4. Conversion drains are properly tracked and available for UI display (needed for Sub-Task 9) ## Dependencies - None (independent, but Sub-Task 9 depends on this) ## Estimated Complexity - Medium (mana calculation logic update)