slashgame window cannot be at the end

This commit is contained in:
Olivier Gagnon 2021-11-02 16:13:58 -04:00
parent d7c23b975c
commit 437d96edbe

@ -45,7 +45,7 @@ export function SlashGame(props: IMinigameProps): React.ReactElement {
setPhase(2);
id = window.setTimeout(() => setPhase(0), difficulty.window);
}, 250);
}, Math.random() * 3250 + 1500);
}, Math.random() * 3250 + 1500 - (250 + difficulty.window));
return () => {
clearInterval(id);
};