Build 29074419

This commit is contained in:
Renan LE CARO 2025-04-12 15:39:32 +02:00
parent b15eb873b1
commit 48ac639901
14 changed files with 28 additions and 57 deletions

View file

@ -37,9 +37,11 @@ export function getRunLevels(
.filter((l) => l.name !== params?.levelToAvoid)
.sort(() => Math.random() - 0.5);
return firstLevel.concat(
restInRandomOrder.slice(0, 7 + 3).sort((a, b) => a.sortKey - b.sortKey),
);
return firstLevel
.concat(
restInRandomOrder.slice(0, 7 + 3).sort((a, b) => a.sortKey - b.sortKey),
)
.concat(restInRandomOrder.slice(7 + 3));
}
export function newGameState(params: RunParams): GameState {