mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-27 07:26:15 -04:00
wip
This commit is contained in:
parent
62a1feb015
commit
02c0634ad7
15 changed files with 84 additions and 358 deletions
|
@ -31,6 +31,13 @@ export function coinsBoostedCombo(gameState: GameState) {
|
|||
});
|
||||
boost += (min * gameState.perks.transparency) / 2;
|
||||
}
|
||||
if(gameState.perks.minefield){
|
||||
gameState.bricks.forEach(brick=>{
|
||||
if(brick === 'black'){
|
||||
boost+=0.1 * gameState.perks.minefield
|
||||
}
|
||||
})
|
||||
}
|
||||
return Math.ceil(Math.max(gameState.combo, gameState.lastCombo) * boost);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue