mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
wip
This commit is contained in:
parent
ccb99ce17d
commit
bf687c48ee
6 changed files with 2911 additions and 74 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue