mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Improve slash game aug timer accuracy
This commit is contained in:
@@ -42,7 +42,7 @@ export function SlashGame(props: IMinigameProps): React.ReactElement {
|
|||||||
const hasAugment = Player.hasAugmentation(AugmentationNames.MightOfAres, true);
|
const hasAugment = Player.hasAugmentation(AugmentationNames.MightOfAres, true);
|
||||||
const phaseZeroTime = Math.random() * 3250 + 1500 - (250 + difficulty.window);
|
const phaseZeroTime = Math.random() * 3250 + 1500 - (250 + difficulty.window);
|
||||||
const phaseOneTime = 250;
|
const phaseOneTime = 250;
|
||||||
const timeUntilAttacking = phaseZeroTime + phaseOneTime;
|
const timeUntilAttacking = (phaseZeroTime + phaseOneTime) * 0.8;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let id = window.setTimeout(() => {
|
let id = window.setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user