From 69cc8b78d1d364da23b5c990fd84ab086f8e66a8 Mon Sep 17 00:00:00 2001 From: n8n-gitea Date: Thu, 4 Jun 2026 19:51:49 +0200 Subject: [PATCH] fix: add missing calcMeleeDamage barrel export in utils/index.ts --- docs/circular-deps.txt | 11 ++--------- docs/dependency-graph.json | 3 +-- src/lib/game/utils/index.ts | 1 + 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/docs/circular-deps.txt b/docs/circular-deps.txt index c74e599..48e8631 100644 --- a/docs/circular-deps.txt +++ b/docs/circular-deps.txt @@ -1,11 +1,4 @@ # Circular Dependencies -Generated: 2026-06-04T17:28:40.127Z -Found: 1 circular chain(s) — these MUST be fixed before modifying involved files. +Generated: 2026-06-04T17:32:36.437Z -1. 1) 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) \ No newline at end of file +No circular dependencies found. ✅ diff --git a/docs/dependency-graph.json b/docs/dependency-graph.json index 207e4a4..6a66b51 100644 --- a/docs/dependency-graph.json +++ b/docs/dependency-graph.json @@ -1,6 +1,6 @@ { "_meta": { - "generated": "2026-06-04T17:28:38.180Z", + "generated": "2026-06-04T17:32:34.521Z", "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." }, @@ -733,7 +733,6 @@ "stores/non-combat-room-actions.ts": [ "constants.ts", "stores/attunementStore.ts", - "stores/combat-descent-actions.ts", "stores/combat-state.types.ts", "stores/discipline-slice.ts", "stores/manaStore.ts" diff --git a/src/lib/game/utils/index.ts b/src/lib/game/utils/index.ts index 7045f61..91fd4c1 100644 --- a/src/lib/game/utils/index.ts +++ b/src/lib/game/utils/index.ts @@ -21,6 +21,7 @@ export { getMultiElementBonus, getBoonBonuses, calcDamage, + calcMeleeDamage, calcInsight, getIncursionStrength, canAffordSpellCost,