mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-16 03:05:03 -04:00
wip
This commit is contained in:
parent
bcf40fe667
commit
096f7d4abd
13 changed files with 1917 additions and 225 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue