chore: raise runestone base cap to 100
CI / Lint, Build & Test (pull_request) Successful in 1m12s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m12s

This commit is contained in:
2026-03-24 20:03:17 -07:00
committed by Naomi Carrigan
parent 959b86fa8b
commit 74dd3bf463
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ const milestoneRunestonesPerInterval = 25;
/*
* Hard cap on the base runestone yield (before multipliers) to prevent
* extreme AFK accumulation from producing game-breaking runestone counts.
* With all upgrades (5.625× max) this caps out at ~281 per prestige.
* With all upgrades (5.625× max) this caps out at ~562 per prestige.
*/
const maxBaseRunestones = 50;
const maxBaseRunestones = 100;
/**
* Calculates the gold threshold required for the next prestige.
+3 -3
View File
@@ -117,9 +117,9 @@ describe("calculateRunestones", () => {
});
it("caps base runestones before multipliers", () => {
// cbrt(300_000_000 / 1_000_000) = cbrt(300) ≈ 6.67 → floor = 66 × 10 = 60, capped at 50
const result = calculateRunestones({ totalGoldEarned: 300_000_000, prestigeCount: 0, purchasedUpgradeIds: [] });
expect(result).toBe(50);
// cbrt(1_331_000_000 / 1_000_000) = cbrt(1331) = 1111 × 10 = 110, capped at 100
const result = calculateRunestones({ totalGoldEarned: 1_331_000_000, prestigeCount: 0, purchasedUpgradeIds: [] });
expect(result).toBe(100);
});
});