This commit is contained in:
Renan LE CARO 2025-04-11 08:15:58 +02:00
parent ccb99ce17d
commit bf687c48ee
6 changed files with 2911 additions and 74 deletions

View file

@ -69,7 +69,7 @@ export function getNearestUnlockHTML(gameState: GameState) {
});
if (!firstUnlockable) return "";
let missingPoints = firstUnlockable.minScore - gameState.score;
let missingPoints = Math.max(0,firstUnlockable.minScore - gameState.score);
let missingUpgrades = firstUnlockable.missing.map((u) => u.name).join(", ");
const title =
@ -85,7 +85,7 @@ export function getNearestUnlockHTML(gameState: GameState) {
});
return `
<p>${t("score_panel.close_to_unlock")}</p>
<p>${t("score_panel.close_to_unlock")}</p>
<div class="upgrade used">
${icons[firstUnlockable.l.name]}
<p>