fix: resolve 7 circular dependency chains in src/lib/game
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 57s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 57s
- equipment/utils.ts: import directly from individual equipment modules instead of index.ts - golems/utils.ts: import directly from individual golem modules instead of index.ts - combatStore.ts: extract CombatState to combat-state.types.ts, remove debugSetTime (was only user of gameStore import) - combat-actions.ts: import CombatState from combat-state.types.ts instead of combatStore - stores/index.ts: re-export CombatState from combat-state.types.ts - GameStateDebug.tsx: replace debugSetTime calls with direct useGameStore.setState() Verification: bunx madge --circular src/lib/game → No circular dependency found!
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
// ─── Golem Helper Functions ─────────────────────────
|
||||
|
||||
import type { GolemDef, GolemManaCost } from './types';
|
||||
import { GOLEMS_DEF } from './index';
|
||||
import { BASE_GOLEMS } from './base-golems';
|
||||
import { ELEMENTAL_GOLEMS } from './elemental-golems';
|
||||
import { HYBRID_GOLEMS } from './hybrid-golems';
|
||||
|
||||
const GOLEMS_DEF = {
|
||||
...BASE_GOLEMS,
|
||||
...ELEMENTAL_GOLEMS,
|
||||
...HYBRID_GOLEMS,
|
||||
};
|
||||
|
||||
// Get golem slots based on Fabricator attunement level
|
||||
// Level 2 = 1, Level 4 = 2, Level 6 = 3, Level 8 = 4, Level 10 = 5
|
||||
|
||||
Reference in New Issue
Block a user