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
+4 -3
View File
@@ -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();
+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 },
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 },
};