c17a8755ae
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m30s
- Changed rawCost from exponential 10^(d+1) to linear 2*distance - Base (d=1): 100 → 2 - Composite (d=2): 1,000 → 4 - Exotic (d=3): 10,000 → 6 - Time (d=4): 100,000 → 8 - Changed componentCost from 10*(d+1) to 3*distance - Composite (d=2): 30 → 6 per component - Exotic (d=3): 40 → 9 per component - Time (d=4): 50 → 12 per component - Updated test comments and expectations in conversion-pause-bug-regression.test.ts and mana-conversion-component-deduction.test.ts to match new values Root cause: The exponential rawCost formula produced values 100-10000x too high, making mana conversion permanently paused since drain (rate × cost) always exceeded even late-game raw regen (~20-50/hr). The new linear formula allows conversions to be sustainable at all game stages. Fixes #378
14 lines
776 B
Plaintext
14 lines
776 B
Plaintext
# Circular Dependencies
|
|
Generated: 2026-06-12T10:15:03.641Z
|
|
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) |