Calculate correct scoring in god mode

This commit is contained in:
Diego Marcos
2018-10-29 16:30:36 -07:00
parent 907b31adc8
commit e604e04399

View File

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