fix: correct quickStart prestige upgrade property name in resetMana
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m4s

This commit is contained in:
2026-06-10 21:51:03 +02:00
parent 7440b63b2e
commit 092e6a3d52
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Circular Dependencies # Circular Dependencies
Generated: 2026-06-10T18:50:03.343Z Generated: 2026-06-10T19:48:45.847Z
Found: 3 circular chain(s) — these MUST be fixed before modifying involved files. Found: 3 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts 1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"_meta": { "_meta": {
"generated": "2026-06-10T18:50:01.087Z", "generated": "2026-06-10T19:48:43.733Z",
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.", "description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry." "usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
}, },
+1 -1
View File
@@ -179,7 +179,7 @@ describe('Persistence', () => {
expect(useGameStore.getState().hour).toBe(0); expect(useGameStore.getState().hour).toBe(0);
// Mana store should be reset // Mana store should be reset
// Note: resetMana uses 10 + prestigeUpgrades.manaStart, with no upgrades = 10 // Note: resetMana uses 10 + prestigeUpgrades.quickStart, with no upgrades = 10
expect(useManaStore.getState().rawMana).toBeGreaterThanOrEqual(0); expect(useManaStore.getState().rawMana).toBeGreaterThanOrEqual(0);
// Combat store should be reset // Combat store should be reset
@@ -131,7 +131,7 @@ describe('ManaStore', () => {
}); });
it('should apply prestige upgrades for starting mana', () => { it('should apply prestige upgrades for starting mana', () => {
useManaStore.getState().resetMana({ manaStart: 5 }); useManaStore.getState().resetMana({ quickStart: 5 });
expect(useManaStore.getState().rawMana).toBe(10 + 5 * 10); expect(useManaStore.getState().rawMana).toBe(10 + 5 * 10);
}); });
}); });
+1 -1
View File
@@ -162,7 +162,7 @@ describe('ManaStore', () => {
}); });
it('should apply prestige upgrades for starting mana', () => { it('should apply prestige upgrades for starting mana', () => {
useManaStore.getState().resetMana({ manaStart: 5 }); useManaStore.getState().resetMana({ quickStart: 5 });
expect(useManaStore.getState().rawMana).toBe(10 + 5 * 10); expect(useManaStore.getState().rawMana).toBe(10 + 5 * 10);
}); });
}); });
+1 -1
View File
@@ -168,7 +168,7 @@ export const useManaStore = create<ManaStore>()(
resetMana: (prestigeUpgrades: Record<string, number>) => { resetMana: (prestigeUpgrades: Record<string, number>) => {
const elementMax = 10 + (prestigeUpgrades.elementalAttune || 0) * 25; const elementMax = 10 + (prestigeUpgrades.elementalAttune || 0) * 25;
const startingMana = 10 + (prestigeUpgrades.manaStart || 0) * 10; const startingMana = 10 + (prestigeUpgrades.quickStart || 0) * 10;
set({ rawMana: startingMana, meditateTicks: 0, totalManaGathered: 0, elements: makeInitialElements(elementMax, prestigeUpgrades), elementRegen: {} }); set({ rawMana: startingMana, meditateTicks: 0, totalManaGathered: 0, elements: makeInitialElements(elementMax, prestigeUpgrades), elementRegen: {} });
}, },
}), }),