mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
slashgame window cannot be at the end
This commit is contained in:
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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user