From 8274ccca5190fd89fa69c40e1b01d80ff915914f Mon Sep 17 00:00:00 2001 From: Diego Marcos Date: Mon, 29 Oct 2018 18:09:43 -0700 Subject: [PATCH] Multiplier decreases instead of being reset on each hit --- src/state/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/index.js b/src/state/index.js index 24f0ad7..00357b4 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -473,7 +473,7 @@ function difficultyComparator (a, b) { function takeDamage (state) { if (!state.isPlaying) { return; } state.score.combo = 0; - state.score.multiplier = 1; + state.score.multiplier = Math.ceil(state.score.multiplier / 2); if (AFRAME.utils.getUrlParameter('godmode')) { return; } state.damage++; checkGameOver(state);