Files
Mana-Loop/docs/circular-deps.txt
T
n8n-gitea b68cc948a3
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s
fix: ensure procedural guardian names are unique across floors
- Modified generateGuardianName() in guardian-encounters.ts to add a cycleOffset (floor/50) that shifts prefix selection for the same elements at different 100-floor ranges
- For multi-element names, also shift the title by cycleOffset to further reduce collision chance
- Added regression test guardian-names-unique.test.ts with 7 test cases covering:
  * Previously colliding floors (170/370 crystal, 200/230 exotic convergence, 210/240 astral convergence)
  * All static guardian floors (10-240) uniqueness
  * All procedural guardian floors (250-490) uniqueness
  * Full range (10-490) uniqueness
  * Determinism check
  * Title format validation

Fixes #376
2026-06-12 10:05:27 +02:00

14 lines
776 B
Plaintext

# Circular Dependencies
Generated: 2026-06-12T07:45:32.728Z
Found: 4 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) data/guardian-encounters.ts > data/guardian-procedural.ts
2. 2) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
3. 3) stores/attunementStore.ts > stores/combatStore.ts > stores/combat-descent-actions.ts
4. 4) stores/attunementStore.ts > stores/combatStore.ts > stores/combat-descent-actions.ts > stores/non-combat-room-actions.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)