mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-27 07:26:15 -04:00
wip
This commit is contained in:
parent
3a9e06207e
commit
88d746e7a1
15 changed files with 372 additions and 48 deletions
|
@ -276,12 +276,12 @@ export function shouldPierceByColor(
|
|||
return true;
|
||||
}
|
||||
|
||||
export function isMovingWhilePassiveIncome(gameState: GameState) {
|
||||
export function isMovingWhilePassiveIncome(gameState: GameState, gracePeriod = 0) {
|
||||
return !!(
|
||||
gameState.lastPuckMove &&
|
||||
gameState.perks.passive_income &&
|
||||
gameState.lastPuckMove >
|
||||
gameState.levelTime - 250 * gameState.perks.passive_income
|
||||
gameState.lastPuckMove >
|
||||
gameState.levelTime - 250 * gameState.perks.passive_income + gracePeriod
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue