From dc9adc487b80b34ab3c8d883c3d6f820efac6e36 Mon Sep 17 00:00:00 2001 From: n8n-gitea Date: Mon, 8 Jun 2026 10:59:10 +0200 Subject: [PATCH] fix: add missing pactAffinity prestige upgrade to PRESTIGE_DEF --- docs/circular-deps.txt | 2 +- docs/dependency-graph.json | 2 +- src/components/game/tabs/PrestigeTab.test.ts | 7 ++++--- src/lib/game/constants/prestige.ts | 1 + 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/circular-deps.txt b/docs/circular-deps.txt index d3a13e9..222b003 100644 --- a/docs/circular-deps.txt +++ b/docs/circular-deps.txt @@ -1,5 +1,5 @@ # Circular Dependencies -Generated: 2026-06-08T08:12:33.305Z +Generated: 2026-06-08T08:31:14.048Z Found: 1 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 476aab4..8ac8901 100644 --- a/docs/dependency-graph.json +++ b/docs/dependency-graph.json @@ -1,6 +1,6 @@ { "_meta": { - "generated": "2026-06-08T08:12:31.358Z", + "generated": "2026-06-08T08:31:12.188Z", "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." }, diff --git a/src/components/game/tabs/PrestigeTab.test.ts b/src/components/game/tabs/PrestigeTab.test.ts index e2ee55b..7fb96b4 100644 --- a/src/components/game/tabs/PrestigeTab.test.ts +++ b/src/components/game/tabs/PrestigeTab.test.ts @@ -28,9 +28,9 @@ describe('Tab barrel export', () => { // ─── Test: Prestige upgrade definitions ──────────────────────────────────────── describe('Prestige upgrade definitions', () => { - it('has exactly 15 prestige upgrades', async () => { + it('has exactly 16 prestige upgrades', async () => { const { PRESTIGE_DEF } = await import('@/lib/game/constants/prestige'); - expect(Object.keys(PRESTIGE_DEF).length).toBe(15); + expect(Object.keys(PRESTIGE_DEF).length).toBe(16); }); it('all upgrades have required fields', async () => { @@ -43,13 +43,14 @@ describe('Prestige upgrade definitions', () => { } }); - it('all 15 expected upgrade IDs are present', async () => { + it('all 16 expected upgrade IDs are present', async () => { const { PRESTIGE_DEF } = await import('@/lib/game/constants/prestige'); const expectedIds = [ 'manaWell', 'manaFlow', 'insightAmp', 'spireKey', 'temporalEcho', 'steadyHand', 'ancientKnowledge', 'elementalAttune', 'spellMemory', 'guardianPact', 'quickStart', 'elemStart', 'unlockedManaTypeCapacity', 'pactBinding', 'pactInterferenceMitigation', + 'pactAffinity', ]; for (const id of expectedIds) { expect(PRESTIGE_DEF[id]).toBeDefined(); diff --git a/src/lib/game/constants/prestige.ts b/src/lib/game/constants/prestige.ts index d32433e..c335aea 100644 --- a/src/lib/game/constants/prestige.ts +++ b/src/lib/game/constants/prestige.ts @@ -17,4 +17,5 @@ export const PRESTIGE_DEF: Record = { unlockedManaTypeCapacity: { name: "Mana Type Capacity", desc: "+10 capacity for selected mana type", max: 5, cost: 1000 }, pactBinding: { name: "Pact Binding", desc: "+1 pact slot per level", max: 5, cost: 2000 }, pactInterferenceMitigation: { name: "Pact Interference Mitigation", desc: "Reduces pact interference penalty", max: 10, cost: 1500 }, + pactAffinity: { name: "Pact Affinity", desc: "+10% pact ritual speed per level", max: 9, cost: 2500 }, };