mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 05:26:15 -04:00
Shunt now only keeps 25% / 50%/ 75%
This commit is contained in:
parent
d2266de792
commit
e8621614ee
6 changed files with 19 additions and 15 deletions
|
@ -501,8 +501,10 @@ export async function setLevel(gameState: GameState, l: number) {
|
|||
gameState.runStatistics.levelsPlayed++;
|
||||
|
||||
// Reset combo silently
|
||||
const finalCombo=gameState.combo
|
||||
gameState.combo = baseCombo(gameState);
|
||||
if (!gameState.perks.shunt) {
|
||||
gameState.combo = baseCombo(gameState);
|
||||
gameState.combo += Math.round(Math.max(0,(finalCombo-gameState.combo)*25*gameState.perks.shunt/100))
|
||||
}
|
||||
gameState.combo += gameState.perks.hot_start * 15;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue