mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-27 23:46:14 -04:00
wip
This commit is contained in:
parent
277aa5682b
commit
21fa5f105e
8 changed files with 71 additions and 50 deletions
|
@ -32,6 +32,9 @@ export function monitorLevelsUnlocks(gameState: GameState) {
|
|||
// Already unlocked
|
||||
if (unlocked.has(name)) return;
|
||||
// Score not reached yet
|
||||
if (gameState.score < minScore) return;
|
||||
if (! minScore) return;
|
||||
|
||||
if (gameState.score < minScore) return;
|
||||
// We are missing a required perk
|
||||
if (required.find((id) => !gameState.perks[id])) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue