mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
wip
This commit is contained in:
parent
156c060b96
commit
be49fb9d6e
16 changed files with 70 additions and 68 deletions
|
@ -285,12 +285,9 @@ export function getLevelUnlockCondition(levelIndex: number) {
|
|||
// Returns "" if level is unlocked, otherwise a string explaining how to unlock it
|
||||
let required: UpgradeLike[] = [],
|
||||
forbidden: UpgradeLike[] = [],
|
||||
minScore = 0;
|
||||
if (levelIndex <= 10) {
|
||||
// Keep all as is
|
||||
} else if (levelIndex < 20) {
|
||||
minScore = 100 * levelIndex;
|
||||
} else {
|
||||
minScore = Math.max(-1000 + 100 * levelIndex,0);
|
||||
|
||||
if (levelIndex > 20) {
|
||||
const excluded: Set<PerkId> = new Set([
|
||||
"extra_levels",
|
||||
"extra_life",
|
||||
|
@ -315,7 +312,6 @@ export function getLevelUnlockCondition(levelIndex: number) {
|
|||
const length = Math.ceil(levelIndex / 30);
|
||||
required = possibletargets.slice(0, length);
|
||||
forbidden = possibletargets.slice(length, length + length);
|
||||
minScore = 100 * levelIndex;
|
||||
}
|
||||
return {
|
||||
required,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue