[High] [Bug] quickStart prestige upgrade does nothing — wrong property name #357
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?
Severity: High
File:
src/lib/game/stores/manaStore.ts(line 178) andsrc/lib/game/constants/prestige.ts(line 20)Description:
resetManacomputesstartingMana = 10 + (prestigeUpgrades.manaStart || 0) * 10. However, the prestige upgrade definition usesquickStartas the key (inPRESTIGE_DEF), notmanaStart. SinceprestigeUpgrades.manaStartis alwaysundefined, the quickStart upgrade's effect is never applied during reset.The
quickStartupgrade is also not applied ingameLoopActions.tscreateStartNewLoop.Impact: The
quickStartprestige upgrade ("Start with 100 raw mana") is completely non-functional. Players who purchase it get no benefit.Fix needed: Change
manaStarttoquickStartin the resetMana function, or rename the upgrade key tomanaStart.Starting work on fixing the quickStart prestige upgrade. Investigating the property name mismatch.
Fixed. Changed
prestigeUpgrades.manaStarttoprestigeUpgrades.quickStartin resetMana(). Also updated tests to use the correct key name. All 1157 tests pass.