Files
Mana-Loop/docs/circular-deps.txt
T
n8n-gitea 076282caf3
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s
fix: resolve elemental mana conversion pause bug (#348)
Two root causes fixed:
1. gameStore.ts: computeRegen now receives actual attunements instead of empty {}, so rawGrossRegen includes attunement contributions (was ~2/hr, now correct 3000+/hr)
2. gameStore.ts buildConversionParams: use rawManaRegen with level scaling (1.5^(level-1)) instead of conversionRate for per-element grossRegen
3. LeftPanel.tsx: same grossRegen fix + include attunement regen in rawGrossRegen display
4. ElementStatsSection.tsx: same grossRegen fix
5. useGameDerived.ts: pass actual attunements to computeRegen for baseRegen calculation

Added regression test: conversion-pause-bug-regression.test.ts (7 tests)
2026-06-10 11:19:10 +02:00

12 lines
585 B
Plaintext

# Circular Dependencies
Generated: 2026-06-10T08:50:57.213Z
Found: 2 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
2. 2) stores/combatStore.ts > stores/combat-descent-actions.ts > stores/attunementStore.ts
## How to fix
1. Identify which import in the chain can be extracted to a shared types/utils file.
2. Move the shared type or function there.
3. Both files import from the new shared module instead of each other.
4. Run: bunx madge --circular src/lib/game (should return clean)