[High] [Bug] Pact System: pactAffinity prestige upgrade doesn't exist in PRESTIGE_DEF #307
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spec: docs/specs/attunements/invoker/systems/pact-system-spec.md §2.3, §6.1
Severity: High
Problem:
src/lib/game/stores/gameStore.ts:206readsctx.prestige.prestigeUpgrades.pactAffinity || 0, but there is nopactAffinitykey inPRESTIGE_DEF(src/lib/game/constants/prestige.ts). The existing pact-related upgrades arepactBinding(slot) andpactInterferenceMitigation(penalty reduction). ThepactAffinityUpgradefor reducing ritual time is missing, so pact affinity from upgrades will always be 0.Files:
src/lib/game/constants/prestige.ts— missing pactAffinity upgradesrc/lib/game/stores/gameStore.ts:206— reads non-existent upgradeStarting investigation of pactAffinity prestige upgrade missing from PRESTIGE_DEF.
✅ Fixed: Added missing
pactAffinityprestige upgrade toPRESTIGE_DEFinsrc/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 includepactAffinityin the expected IDs list. All 1041 tests pass.