mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 03:00:56 +02:00
slashgame window cannot be at the end
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user