[High] [Bug] quickStart prestige upgrade does nothing — wrong property name #357

Closed
opened 2026-06-10 19:25:16 +02:00 by Anexim · 2 comments
Owner

Severity: High
File: src/lib/game/stores/manaStore.ts (line 178) and src/lib/game/constants/prestige.ts (line 20)

Description:
resetMana computes startingMana = 10 + (prestigeUpgrades.manaStart || 0) * 10. However, the prestige upgrade definition uses quickStart as the key (in PRESTIGE_DEF), not manaStart. Since prestigeUpgrades.manaStart is always undefined, the quickStart upgrade's effect is never applied during reset.

The quickStart upgrade is also not applied in gameLoopActions.ts createStartNewLoop.

Impact: The quickStart prestige upgrade ("Start with 100 raw mana") is completely non-functional. Players who purchase it get no benefit.

Fix needed: Change manaStart to quickStart in the resetMana function, or rename the upgrade key to manaStart.

**Severity:** High **File:** `src/lib/game/stores/manaStore.ts` (line 178) and `src/lib/game/constants/prestige.ts` (line 20) **Description:** `resetMana` computes `startingMana = 10 + (prestigeUpgrades.manaStart || 0) * 10`. However, the prestige upgrade definition uses `quickStart` as the key (in `PRESTIGE_DEF`), not `manaStart`. Since `prestigeUpgrades.manaStart` is always `undefined`, the quickStart upgrade's effect is never applied during reset. The `quickStart` upgrade is also not applied in `gameLoopActions.ts` `createStartNewLoop`. **Impact:** The `quickStart` prestige upgrade ("Start with 100 raw mana") is completely non-functional. Players who purchase it get no benefit. **Fix needed:** Change `manaStart` to `quickStart` in the resetMana function, or rename the upgrade key to `manaStart`.
Anexim added the ai:todo label 2026-06-10 19:25:16 +02:00
n8n-gitea was assigned by Anexim 2026-06-10 19:25:16 +02:00
Anexim added ai:in-progress and removed ai:todo labels 2026-06-10 21:49:04 +02:00
Author
Owner

Starting work on fixing the quickStart prestige upgrade. Investigating the property name mismatch.

Starting work on fixing the quickStart prestige upgrade. Investigating the property name mismatch.
Anexim added ai:done and removed ai:in-progress labels 2026-06-10 21:51:29 +02:00
Author
Owner

Fixed. Changed prestigeUpgrades.manaStart to prestigeUpgrades.quickStart in resetMana(). Also updated tests to use the correct key name. All 1157 tests pass.

Fixed. Changed `prestigeUpgrades.manaStart` to `prestigeUpgrades.quickStart` in resetMana(). Also updated tests to use the correct key name. All 1157 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#357