Build 29068588

This commit is contained in:
Renan LE CARO 2025-04-08 14:29:00 +02:00
parent c6665d9b0e
commit 269f1b8b94
8 changed files with 26 additions and 13 deletions

View file

@ -12,16 +12,21 @@ import {
import { dontOfferTooSoon, resetBalls } from "./gameStateMutators";
import { isOptionOn } from "./options";
import { getHistory } from "./gameOver";
import { getTotalScore } from "./settings";
import { getSettingValue, getTotalScore } from "./settings";
import { isStartingPerk } from "./startingPerks";
export function getRunLevels(
params: RunParams,
randomGift: PerkId | undefined,
) {
const unlockedBefore = new Set(
getSettingValue("breakout_71_unlocked_levels", []),
);
const history = getHistory();
const unlocked = allLevels.filter(
(l, li) => !reasonLevelIsLocked(li, history, false),
(l, li) =>
unlockedBefore.has(l.name) || !reasonLevelIsLocked(li, history, false),
);
const firstLevel =