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

@ -12,12 +12,12 @@ import { asyncAlert, requiredAsyncAlert } from "./asyncAlert";
import {
describeLevel,
highScoreText,
reasonLevelIsLocked,
sumOfValues,
} from "./game_utils";
import { getHistory } from "./gameOver";
import { noCreative } from "./upgrades";
import { levelIconHTML } from "./levelIcon";
import {reasonLevelIsLocked} from "./get_level_unlock_condition";
export function creativeMode(gameState: GameState) {
return {
@ -46,7 +46,7 @@ export async function openCreativeModePerksPicker() {
while (true) {
const levelOptions = [
...allLevels.map((l, li) => {
const problem = reasonLevelIsLocked(li, getHistory(), true)?.text || "";
const problem = reasonLevelIsLocked(li, l.name,getHistory(), true)?.text || "";
return {
icon: icons[l.name],
text: l.name,