mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 22:46:15 -04:00
Build 29073274
This commit is contained in:
parent
a8e9fc6cb6
commit
613b7cce58
13 changed files with 2680 additions and 2648 deletions
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue