mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-07-20 10:04:07 +00:00
Stop highlighting a required upgrade after it's been selected once already.
This commit is contained in:
parent
31d22b52f3
commit
c287c991c5
2 changed files with 2 additions and 2 deletions
2
dist/index.html
vendored
2
dist/index.html
vendored
|
@ -6779,7 +6779,7 @@ async function openUpgradesPicker(gameState) {
|
|||
levelName: unlockable?.l.name || ""
|
||||
});
|
||||
}
|
||||
if (unlockable?.required?.includes(u.id)) {
|
||||
if (unlockable?.required?.includes(u.id) && !gameState.perks[u.id]) {
|
||||
unlockRelatedUpgradesOffered++;
|
||||
className += " required";
|
||||
unlockHint = (0, _i18N.t)("level_up.required", {
|
||||
|
|
|
@ -163,7 +163,7 @@ export async function openUpgradesPicker(gameState: GameState) {
|
|||
levelName: unlockable?.l.name || "",
|
||||
});
|
||||
}
|
||||
if (unlockable?.required?.includes(u.id)) {
|
||||
if (unlockable?.required?.includes(u.id) && !gameState.perks[u.id]) {
|
||||
unlockRelatedUpgradesOffered++;
|
||||
className += " required";
|
||||
unlockHint = t("level_up.required", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue