This commit is contained in:
Renan LE CARO 2025-04-26 20:07:01 +02:00
parent bcf40fe667
commit 096f7d4abd
13 changed files with 1917 additions and 225 deletions

View file

@ -2,9 +2,9 @@ import { RunHistoryItem } from "./types";
import _appVersion from "./data/version.json";
import { generateSaveFileContent } from "./generateSaveFileContent";
import { reasonLevelIsLocked } from "./game_utils";
import { allLevels } from "./loadGameData";
import { toast } from "./toast";
import {isLevelLocked, reasonLevelIsLocked} from "./get_level_unlock_condition";
// The page will be reloaded if any migrations were run
let migrationsRun = 0;
@ -128,7 +128,7 @@ migrate("set_breakout_71_unlocked_levels" + _appVersion, () => {
) as string[];
allLevels
.filter((l, li) => !reasonLevelIsLocked(li, runsHistory, false))
.filter((l, li) => !isLevelLocked(li,l.name, runsHistory))
.forEach((l) => {
if (!breakout_71_unlocked_levels.includes(l.name)) {
breakout_71_unlocked_levels.push(l.name);