Shunt now only keeps 25% / 50%/ 75%

This commit is contained in:
Renan LE CARO 2025-03-20 08:13:17 +01:00
parent d2266de792
commit e8621614ee
6 changed files with 19 additions and 15 deletions

View file

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