Bug: Prestige wipes signed pacts — cross-loop progression destroyed #219

Closed
opened 2026-05-30 21:10:32 +02:00 by Anexim · 1 comment
Owner

Bug Description

Every time the player prestige-loops (starts a new loop), all signed pacts are erased. Pacts are meant to be permanent cross-loop progression, but resetPrestigeForNewLoop explicitly sets signedPacts: [] and defeatedGuardians: [].

Code Location

src/lib/game/stores/prestigeStore.ts lines 225-239 (resetPrestigeForNewLoop)
src/lib/game/stores/gameLoopActions.ts lines 14-50 (createStartNewLoop)

// In resetPrestigeForNewLoop:
signedPacts: [],
defeatedGuardians: [],

Impact

Critical. The entire cross-loop progression system is broken:

  • Players lose all pacts on every prestige
  • Pact boons (damage multipliers, insight multipliers, unlocked mana types) are all lost
  • The late game (which depends on accumulated pacts) is impossible
  • Signed pacts are also not persisted per AGENTS.md: "Signed pacts persist through prestige (bounded by pactSlots)"

Fix Required

Persist signed pacts through prestige, bounded by pactSlots (from prestige upgrades). The fix in resetPrestigeForNewLoop should be:

signedPacts: state.signedPacts.slice(0, state.pactSlots || 1),
// Keep defeated guardians too
defeatedGuardians: state.defeatedGuardians,
## Bug Description Every time the player prestige-loops (starts a new loop), all signed pacts are erased. Pacts are meant to be permanent cross-loop progression, but `resetPrestigeForNewLoop` explicitly sets `signedPacts: []` and `defeatedGuardians: []`. ## Code Location `src/lib/game/stores/prestigeStore.ts` lines 225-239 (`resetPrestigeForNewLoop`) `src/lib/game/stores/gameLoopActions.ts` lines 14-50 (`createStartNewLoop`) ```typescript // In resetPrestigeForNewLoop: signedPacts: [], defeatedGuardians: [], ``` ## Impact **Critical.** The entire cross-loop progression system is broken: - Players lose all pacts on every prestige - Pact boons (damage multipliers, insight multipliers, unlocked mana types) are all lost - The late game (which depends on accumulated pacts) is impossible - Signed pacts are also not persisted per AGENTS.md: "Signed pacts persist through prestige (bounded by `pactSlots`)" ## Fix Required Persist signed pacts through prestige, bounded by `pactSlots` (from prestige upgrades). The fix in `resetPrestigeForNewLoop` should be: ```typescript signedPacts: state.signedPacts.slice(0, state.pactSlots || 1), // Keep defeated guardians too defeatedGuardians: state.defeatedGuardians, ```
Anexim added the ai:todo label 2026-05-30 21:10:32 +02:00
n8n-gitea was assigned by Anexim 2026-05-30 21:10:32 +02:00
Author
Owner

Closing — this is intended behavior. Prestige is meant to wipe signed pacts as part of the loop reset. Not a bug.

Closing — this is intended behavior. Prestige is meant to wipe signed pacts as part of the loop reset. Not a bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#219