fix: remove debugSetTime and useGameStore import from combatStore to break remaining circular deps
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 55s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 55s
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
# Circular Dependencies
|
# Circular Dependencies
|
||||||
Generated: 2026-05-18T12:22:03.557Z
|
Generated: 2026-05-18T12:47:02.133Z
|
||||||
Found: 7 circular chain(s) — these MUST be fixed before modifying involved files.
|
Found: 4 circular chain(s) — these MUST be fixed before modifying involved files.
|
||||||
|
|
||||||
1. Processed 121 files (1.2s) (30 warnings)
|
1. Processed 122 files (1.3s) (30 warnings)
|
||||||
2. 1) data/equipment/index.ts > data/equipment/utils.ts
|
2. 1) stores/combatStore.ts > stores/gameStore.ts
|
||||||
3. 2) data/golems/index.ts > data/golems/utils.ts
|
3. 2) stores/combatStore.ts > stores/gameStore.ts > stores/gameActions.ts
|
||||||
4. 3) stores/combatStore.ts > stores/combat-actions.ts
|
4. 3) stores/combatStore.ts > stores/gameStore.ts > stores/gameLoopActions.ts
|
||||||
5. 4) stores/combatStore.ts > stores/gameStore.ts
|
|
||||||
6. 5) stores/combatStore.ts > stores/gameStore.ts > stores/gameActions.ts
|
|
||||||
7. 6) stores/combatStore.ts > stores/gameStore.ts > stores/gameLoopActions.ts
|
|
||||||
|
|
||||||
## How to fix
|
## How to fix
|
||||||
1. Identify which import in the chain can be extracted to a shared types/utils file.
|
1. Identify which import in the chain can be extracted to a shared types/utils file.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"generated": "2026-05-18T12:22:02.104Z",
|
"generated": "2026-05-18T12:47:00.491Z",
|
||||||
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
||||||
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
||||||
},
|
},
|
||||||
@@ -318,7 +318,15 @@
|
|||||||
],
|
],
|
||||||
"data/equipment/types.ts": [],
|
"data/equipment/types.ts": [],
|
||||||
"data/equipment/utils.ts": [
|
"data/equipment/utils.ts": [
|
||||||
"data/equipment/index.ts",
|
"data/equipment/accessories.ts",
|
||||||
|
"data/equipment/body.ts",
|
||||||
|
"data/equipment/casters.ts",
|
||||||
|
"data/equipment/catalysts.ts",
|
||||||
|
"data/equipment/feet.ts",
|
||||||
|
"data/equipment/hands.ts",
|
||||||
|
"data/equipment/head.ts",
|
||||||
|
"data/equipment/shields.ts",
|
||||||
|
"data/equipment/swords.ts",
|
||||||
"data/equipment/types.ts"
|
"data/equipment/types.ts"
|
||||||
],
|
],
|
||||||
"data/golems/base-golems.ts": [
|
"data/golems/base-golems.ts": [
|
||||||
@@ -339,7 +347,9 @@
|
|||||||
],
|
],
|
||||||
"data/golems/types.ts": [],
|
"data/golems/types.ts": [],
|
||||||
"data/golems/utils.ts": [
|
"data/golems/utils.ts": [
|
||||||
"data/golems/index.ts",
|
"data/golems/base-golems.ts",
|
||||||
|
"data/golems/elemental-golems.ts",
|
||||||
|
"data/golems/hybrid-golems.ts",
|
||||||
"data/golems/types.ts"
|
"data/golems/types.ts"
|
||||||
],
|
],
|
||||||
"data/loot-drops.ts": [
|
"data/loot-drops.ts": [
|
||||||
@@ -395,13 +405,17 @@
|
|||||||
],
|
],
|
||||||
"stores/combat-actions.ts": [
|
"stores/combat-actions.ts": [
|
||||||
"constants.ts",
|
"constants.ts",
|
||||||
"stores/combatStore.ts",
|
"stores/combat-state.types.ts",
|
||||||
"stores/prestigeStore.ts",
|
"stores/prestigeStore.ts",
|
||||||
"types.ts",
|
"types.ts",
|
||||||
"utils/index.ts"
|
"utils/index.ts"
|
||||||
],
|
],
|
||||||
|
"stores/combat-state.types.ts": [
|
||||||
|
"types.ts"
|
||||||
|
],
|
||||||
"stores/combatStore.ts": [
|
"stores/combatStore.ts": [
|
||||||
"stores/combat-actions.ts",
|
"stores/combat-actions.ts",
|
||||||
|
"stores/combat-state.types.ts",
|
||||||
"stores/gameStore.ts",
|
"stores/gameStore.ts",
|
||||||
"stores/prestigeStore.ts",
|
"stores/prestigeStore.ts",
|
||||||
"types.ts",
|
"types.ts",
|
||||||
@@ -471,6 +485,7 @@
|
|||||||
"stores/index.ts": [
|
"stores/index.ts": [
|
||||||
"constants.ts",
|
"constants.ts",
|
||||||
"stores/attunementStore.ts",
|
"stores/attunementStore.ts",
|
||||||
|
"stores/combat-state.types.ts",
|
||||||
"stores/combatStore.ts",
|
"stores/combatStore.ts",
|
||||||
"stores/craftingStore.ts",
|
"stores/craftingStore.ts",
|
||||||
"stores/gameHooks.ts",
|
"stores/gameHooks.ts",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { persist } from 'zustand/middleware';
|
|||||||
import type { GameAction, SpellState, FloorState, GolemancyState, ActivityLogEntry, AchievementState, EquipmentSpellState, ActivityEventType } from '../types';
|
import type { GameAction, SpellState, FloorState, GolemancyState, ActivityLogEntry, AchievementState, EquipmentSpellState, ActivityEventType } from '../types';
|
||||||
import { getFloorMaxHP } from '../utils';
|
import { getFloorMaxHP } from '../utils';
|
||||||
import { usePrestigeStore } from './prestigeStore';
|
import { usePrestigeStore } from './prestigeStore';
|
||||||
import { useGameStore } from './gameStore';
|
|
||||||
import { generateFloorState } from '../utils/room-utils';
|
import { generateFloorState } from '../utils/room-utils';
|
||||||
import { addActivityLogEntry } from '../utils/activity-log';
|
import { addActivityLogEntry } from '../utils/activity-log';
|
||||||
import { processCombatTick, makeInitialSpells } from './combat-actions';
|
import { processCombatTick, makeInitialSpells } from './combat-actions';
|
||||||
@@ -267,9 +266,7 @@ export const useCombatStore = create<CombatState>()(
|
|||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
|
|
||||||
debugSetTime: (day: number, hour: number) => {
|
|
||||||
useGameStore.setState({ day, hour });
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: 'mana-loop-combat',
|
name: 'mana-loop-combat',
|
||||||
|
|||||||
Reference in New Issue
Block a user