feat: Making the game harder to 'beat'

This commit is contained in:
gauvainboiche
2026-10-08 17:17:21 +02:00
parent 2f7c307f0e
commit 8b15c76b14
20 changed files with 637 additions and 91 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ test('costs grow exponentially, level after level', () => {
test('buying several levels charges the exact sum', () => {
const s = finished();
s.funds = 1e13;
s.funds = 1e15;
const l = line('e_demand');
const before = s.funds;
assert.ok(buyEndless(s, ctx, 'e_demand', 10));
@@ -128,7 +128,7 @@ test('even absurd levels never produce NaN or Infinity', () => {
test('endless levels belong to the run: a legacy restart resets them', () => {
const s = finished();
s.endless.e_global = 12;
s.totalProduced = 1e10;
s.totalProduced = s.lifetimeProduced = 1e14;
prestige(s, ctx);
assert.deepEqual(s.endless, {});
});