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