This commit is contained in:
Renan LE CARO 2025-04-23 20:51:44 +02:00
parent 62a1feb015
commit 02c0634ad7
15 changed files with 84 additions and 358 deletions

View file

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