[High] [Bug] Pact System: pactAffinity prestige upgrade doesn't exist in PRESTIGE_DEF #307

Closed
opened 2026-06-07 17:42:20 +02:00 by Anexim · 2 comments
Owner

Spec: docs/specs/attunements/invoker/systems/pact-system-spec.md §2.3, §6.1
Severity: High

Problem: src/lib/game/stores/gameStore.ts:206 reads ctx.prestige.prestigeUpgrades.pactAffinity || 0, but there is no pactAffinity key in PRESTIGE_DEF (src/lib/game/constants/prestige.ts). The existing pact-related upgrades are pactBinding (slot) and pactInterferenceMitigation (penalty reduction). The pactAffinityUpgrade for reducing ritual time is missing, so pact affinity from upgrades will always be 0.

Files:

  • src/lib/game/constants/prestige.ts — missing pactAffinity upgrade
  • src/lib/game/stores/gameStore.ts:206 — reads non-existent upgrade
**Spec:** docs/specs/attunements/invoker/systems/pact-system-spec.md §2.3, §6.1 **Severity:** High **Problem:** `src/lib/game/stores/gameStore.ts:206` reads `ctx.prestige.prestigeUpgrades.pactAffinity || 0`, but there is **no `pactAffinity` key** in `PRESTIGE_DEF` (`src/lib/game/constants/prestige.ts`). The existing pact-related upgrades are `pactBinding` (slot) and `pactInterferenceMitigation` (penalty reduction). The `pactAffinityUpgrade` for reducing ritual time is missing, so pact affinity from upgrades will always be 0. **Files:** - `src/lib/game/constants/prestige.ts` — missing pactAffinity upgrade - `src/lib/game/stores/gameStore.ts:206` — reads non-existent upgrade
Anexim added the ai:todo label 2026-06-07 17:42:20 +02:00
n8n-gitea was assigned by Anexim 2026-06-07 17:42:20 +02:00
Anexim added ai:in-progress and removed ai:todo labels 2026-06-08 10:56:30 +02:00
Author
Owner

Starting investigation of pactAffinity prestige upgrade missing from PRESTIGE_DEF.

Starting investigation of pactAffinity prestige upgrade missing from PRESTIGE_DEF.
Anexim added ai:done and removed ai:in-progress labels 2026-06-08 10:59:40 +02:00
Author
Owner

Fixed: Added missing pactAffinity prestige upgrade to PRESTIGE_DEF in src/lib/game/constants/prestige.ts. The upgrade grants +10% pact ritual speed per level (max 9 levels = 90% reduction, matching the 0.9 cap in the pact affinity formula). Also updated the PrestigeTab test to expect 16 upgrades and include pactAffinity in the expected IDs list. All 1041 tests pass.

✅ Fixed: Added missing `pactAffinity` prestige upgrade to `PRESTIGE_DEF` in `src/lib/game/constants/prestige.ts`. The upgrade grants +10% pact ritual speed per level (max 9 levels = 90% reduction, matching the 0.9 cap in the pact affinity formula). Also updated the PrestigeTab test to expect 16 upgrades and include `pactAffinity` in the expected IDs list. All 1041 tests pass.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#307