Build 29073274

This commit is contained in:
Renan LE CARO 2025-04-11 20:34:51 +02:00
parent a8e9fc6cb6
commit 613b7cce58
13 changed files with 2680 additions and 2648 deletions

View file

@ -4,7 +4,7 @@ import { t } from "./i18n/i18n";
import { icons, upgrades } from "./loadGameData";
import { getSettingValue, getTotalScore, setSettingValue } from "./settings";
import { isOptionOn } from "./options";
import {notStartingPerk} from "./upgrades";
import { notStartingPerk } from "./upgrades";
export function startingPerkMenuButton() {
return {
@ -20,15 +20,14 @@ export function startingPerkMenuButton() {
export function isBlackListedForStart(u: Upgrade) {
return !!(
notStartingPerk.includes(u.id) ||
notStartingPerk.includes(u.id) ||
u.requires ||
u.threshold > getTotalScore()
);
}
export function isStartingPerk(u: Upgrade): boolean {
return (
!isBlackListedForStart(u) &&
getSettingValue("start_with_" + u.id, u.gift)
!isBlackListedForStart(u) && getSettingValue("start_with_" + u.id, u.gift)
);
}