This commit is contained in:
Renan LE CARO 2025-04-06 18:21:53 +02:00
parent 42abc6bc01
commit 46228a2128
20 changed files with 226 additions and 129 deletions

View file

@ -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),
);