From e604e04399e574f0571788634108ed81524da11e Mon Sep 17 00:00:00 2001 From: Diego Marcos Date: Mon, 29 Oct 2018 16:30:36 -0700 Subject: [PATCH] Calculate correct scoring in god mode --- src/state/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/index.js b/src/state/index.js index 1d18091..24f0ad7 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -471,11 +471,11 @@ function difficultyComparator (a, b) { } function takeDamage (state) { - if (AFRAME.utils.getUrlParameter('godmode')) { return; } if (!state.isPlaying) { return; } - state.damage++; state.score.combo = 0; state.score.multiplier = 1; + if (AFRAME.utils.getUrlParameter('godmode')) { return; } + state.damage++; checkGameOver(state); }