diff --git a/dist/index.html b/dist/index.html index b34f019..eb06be4 100644 --- a/dist/index.html +++ b/dist/index.html @@ -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", { diff --git a/src/openUpgradesPicker.ts b/src/openUpgradesPicker.ts index 2610eda..be72b4c 100644 --- a/src/openUpgradesPicker.ts +++ b/src/openUpgradesPicker.ts @@ -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", {