mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 14:06:16 -04:00
wip
This commit is contained in:
parent
42abc6bc01
commit
46228a2128
20 changed files with 226 additions and 129 deletions
|
@ -29,6 +29,13 @@ export function getRunLevels(params: RunParams) {
|
|||
.filter((l) => l.name !== params?.levelToAvoid)
|
||||
.sort(() => Math.random() - 0.5);
|
||||
|
||||
console.log("getRunLevels", {
|
||||
params,
|
||||
history,
|
||||
unlocked,
|
||||
firstLevel,
|
||||
restInRandomOrder,
|
||||
});
|
||||
return firstLevel.concat(
|
||||
restInRandomOrder.slice(0, 7 + 3).sort((a, b) => a.sortKey - b.sortKey),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue