This commit is contained in:
Renan LE CARO 2025-04-29 16:10:24 +02:00
parent 08a61d6967
commit d17eba50e5
24 changed files with 711 additions and 1028 deletions

View file

@ -8,7 +8,7 @@ import {
makeEmptyPerksMap,
sumOfValues,
} from "./game_utils";
import { dontOfferTooSoon, resetBalls } from "./gameStateMutators";
import { resetBalls } from "./gameStateMutators";
import { isOptionOn } from "./options";
import { getHistory } from "./gameOver";
import { getSettingValue, getTotalScore } from "./settings";
@ -17,6 +17,7 @@ import {
isLevelLocked,
reasonLevelIsLocked,
} from "./get_level_unlock_condition";
import {dontOfferTooSoon} from "./openUpgradesPicker";
export function getRunLevels(
params: RunParams,
@ -143,7 +144,7 @@ export function newGameState(params: RunParams): GameState {
needsRender: true,
autoCleanUses: 0,
...defaultSounds(),
rerolls: 0,
extra_lives: 0,
creative:
params?.computer_controlled ||
sumOfValues(params.perks) > 1 ||