diff --git a/WORKLOG.md b/WORKLOG.md index 1db71156..73c8ea5b 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -5,8 +5,8 @@ _ntr_ * can't reset password without knowing password =\ * hard reload client on version change -electrify on death / stun -siphon stack removed check +decay reflected not applied +black out timer when game finished * audio * animation effects diff --git a/client/src/components/game.ctrl.jsx b/client/src/components/game.ctrl.jsx index 4d7de121..ccfb5904 100644 --- a/client/src/components/game.ctrl.jsx +++ b/client/src/components/game.ctrl.jsx @@ -45,7 +45,7 @@ function Controls(args) { const now = animating ? zero : Date.now(); const end = Date.parse(game.phase_end); - const timerPct = game.phase_end + const timerPct = game.phase_end || !game.phase == 'Finished' ? ((now - zero) / (end - zero) * 100) : 100;