Multiplier decreases instead of being reset on each hit

This commit is contained in:
Diego Marcos
2018-10-29 18:09:43 -07:00
parent 11049f2f12
commit 8274ccca51

View File

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