513cab81a3
- Delete src/lib/game/constants/guardians.ts (the old static GUARDIANS constant) - Create src/lib/game/data/guardian-data.ts with BASE_GUARDIANS (same data, new home) - Remove GUARDIANS export from constants/index.ts - Update all 11 files that imported GUARDIANS to use getGuardianForFloor() or BASE_GUARDIANS: - useGameDerived.ts, combat-actions.ts, gameStore.ts, prestigeStore.ts - combat-utils.ts, room-utils.ts, floor-utils.ts, spire-utils.ts - SpireCombatPage.tsx, SpireHeader.tsx - Update 4 test files to use getGuardianForFloor() instead of GUARDIANS constant - guardian-encounters.ts now imports BASE_GUARDIANS from guardian-data.ts - Split room-utils.test.ts (505 lines) into room-utils.test.ts + room-utils-floor-state.test.ts
14 lines
623 B
Plaintext
14 lines
623 B
Plaintext
# Circular Dependencies
|
|
Generated: 2026-05-23T12:53:16.980Z
|
|
Found: 4 circular chain(s) — these MUST be fixed before modifying involved files.
|
|
|
|
1. Processed 129 files (1.4s) (3 warnings)
|
|
2. 1) stores/gameStore.ts > stores/gameActions.ts
|
|
3. 2) stores/gameStore.ts > stores/gameLoopActions.ts
|
|
4. 3) stores/gameStore.ts > stores/tick-pipeline.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) |