Build 29088513

This commit is contained in:
Renan LE CARO 2025-04-22 10:33:25 +02:00
parent bf3dac8e8f
commit af65737011
10 changed files with 58 additions and 59 deletions

View file

@ -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
);
}