From 87f30b954494212e8ee16ae7c44b0320dea90a99 Mon Sep 17 00:00:00 2001 From: n8n-gitea Date: Tue, 9 Jun 2026 14:48:53 +0200 Subject: [PATCH] fix: resolve ReferenceError in enterSpireMode - use get() instead of undefined s variable --- docs/circular-deps.txt | 2 +- docs/dependency-graph.json | 6 ++---- src/lib/game/stores/combat-descent-actions.ts | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/circular-deps.txt b/docs/circular-deps.txt index 2783f2f..5e32400 100644 --- a/docs/circular-deps.txt +++ b/docs/circular-deps.txt @@ -1,5 +1,5 @@ # Circular Dependencies -Generated: 2026-06-09T09:18:57.036Z +Generated: 2026-06-09T10:03:41.836Z Found: 2 circular chain(s) — these MUST be fixed before modifying involved files. 1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts diff --git a/docs/dependency-graph.json b/docs/dependency-graph.json index 00cd0d5..e10fb8b 100644 --- a/docs/dependency-graph.json +++ b/docs/dependency-graph.json @@ -1,6 +1,6 @@ { "_meta": { - "generated": "2026-06-09T09:18:55.072Z", + "generated": "2026-06-09T10:03:39.823Z", "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." }, @@ -422,9 +422,6 @@ "data/equipment/types.ts", "data/equipment/utils.ts" ], - "data/equipment/shields.ts": [ - "data/equipment/types.ts" - ], "data/equipment/swords.ts": [ "data/equipment/types.ts" ], @@ -775,6 +772,7 @@ "data/guardian-encounters.ts", "effects/special-effects.ts", "effects/upgrade-effects.types.ts", + "stores/attunementStore.ts", "stores/combat-state.types.ts", "stores/golem-combat-actions.ts", "types.ts" diff --git a/src/lib/game/stores/combat-descent-actions.ts b/src/lib/game/stores/combat-descent-actions.ts index fc4eab8..7b67496 100644 --- a/src/lib/game/stores/combat-descent-actions.ts +++ b/src/lib/game/stores/combat-descent-actions.ts @@ -275,7 +275,7 @@ export function createEnterSpireMode(get: GetFn, set: SetFn) { roomResetState: {}, descentPeak: null, isDescentComplete: false, - golemancy: { activeGolems: [], lastSummonFloor: 0, golemDesigns: s.golemancy?.golemDesigns ?? {}, golemLoadout: [] }, + golemancy: { activeGolems: [], lastSummonFloor: 0, golemDesigns: get().golemancy?.golemDesigns ?? {}, golemLoadout: [] }, }); get().addActivityLog('floor_transition',