mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-14 18:25:11 -04:00
Build 29091656
This commit is contained in:
parent
f48d9bdfa3
commit
e2d8a0ab5c
28 changed files with 2607 additions and 2496 deletions
|
@ -31,12 +31,12 @@ 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
|
||||
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