This commit is contained in:
Renan LE CARO 2025-04-23 20:51:44 +02:00
parent 62a1feb015
commit 02c0634ad7
15 changed files with 84 additions and 358 deletions

View file

@ -913,7 +913,6 @@ async function applyFullScreenChoice() {
async function openUnlockedUpgradesList() {
const ts = getTotalScore();
const upgradeActions = upgrades
.sort((a, b) => a.threshold - b.threshold)
.map(({ name, id, threshold, help, category, fullHelp }) => ({
text: name,
disabled: ts < threshold,
@ -928,7 +927,9 @@ async function openUnlockedUpgradesList() {
? t("unlocks.minTotalScore", { score: threshold })
: help(1),
tooltip: ts < threshold ? "" : fullHelp(1)+ ' [id:'+id+ ']',
}));
threshold
}))
.sort((a, b) => a.threshold - b.threshold);
const tryOn = await asyncAlert<RunParams>({
title: t("unlocks.title_upgrades", {