fix: add missing pactAffinity prestige upgrade to PRESTIGE_DEF
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m18s

This commit is contained in:
2026-06-08 10:59:10 +02:00
parent 411c355a15
commit dc9adc487b
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Circular Dependencies # 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. 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 1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"_meta": { "_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.", "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."
}, },
+4 -3
View File
@@ -28,9 +28,9 @@ describe('Tab barrel export', () => {
// ─── Test: Prestige upgrade definitions ──────────────────────────────────────── // ─── Test: Prestige upgrade definitions ────────────────────────────────────────
describe('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'); 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 () => { 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 { PRESTIGE_DEF } = await import('@/lib/game/constants/prestige');
const expectedIds = [ const expectedIds = [
'manaWell', 'manaFlow', 'insightAmp', 'spireKey', 'manaWell', 'manaFlow', 'insightAmp', 'spireKey',
'temporalEcho', 'steadyHand', 'ancientKnowledge', 'elementalAttune', 'temporalEcho', 'steadyHand', 'ancientKnowledge', 'elementalAttune',
'spellMemory', 'guardianPact', 'quickStart', 'elemStart', 'spellMemory', 'guardianPact', 'quickStart', 'elemStart',
'unlockedManaTypeCapacity', 'pactBinding', 'pactInterferenceMitigation', 'unlockedManaTypeCapacity', 'pactBinding', 'pactInterferenceMitigation',
'pactAffinity',
]; ];
for (const id of expectedIds) { for (const id of expectedIds) {
expect(PRESTIGE_DEF[id]).toBeDefined(); expect(PRESTIGE_DEF[id]).toBeDefined();
+1
View File
@@ -17,4 +17,5 @@ export const PRESTIGE_DEF: Record<string, PrestigeDef> = {
unlockedManaTypeCapacity: { name: "Mana Type Capacity", desc: "+10 capacity for selected mana type", max: 5, cost: 1000 }, 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 }, 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 }, 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 },
}; };