mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +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);
|
setPhase(2);
|
||||||
id = window.setTimeout(() => setPhase(0), difficulty.window);
|
id = window.setTimeout(() => setPhase(0), difficulty.window);
|
||||||
}, 250);
|
}, 250);
|
||||||
}, Math.random() * 3250 + 1500);
|
}, Math.random() * 3250 + 1500 - (250 + difficulty.window));
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(id);
|
clearInterval(id);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user