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

4
dist/index.html vendored
View file

@ -5667,7 +5667,7 @@ function getNearestUnlockHTML(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 = missingUpgrades && (0, _i18N.t)("score_panel.get_upgrades_to_unlock", {
missingUpgrades,
@ -5678,7 +5678,7 @@ function getNearestUnlockHTML(gameState) {
level: firstUnlockable.l.name
});
return `
<p>${(0, _i18N.t)("score_panel.close_to_unlock")}</p>
<p>${(0, _i18N.t)("score_panel.close_to_unlock")}</p>
<div class="upgrade used">
${(0, _loadGameData.icons)[firstUnlockable.l.name]}
<p>