mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 13:36:15 -04:00
Build 29068588
This commit is contained in:
parent
c6665d9b0e
commit
269f1b8b94
8 changed files with 26 additions and 13 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue