mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Fix slash game Aug ending game early
This commit is contained in:
parent
437cd66ffe
commit
def89832cb
@ -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) * 0.8;
|
const timeUntilAttacking = phaseZeroTime + phaseOneTime;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let id = window.setTimeout(() => {
|
let id = window.setTimeout(() => {
|
||||||
@ -66,7 +66,7 @@ export function SlashGame(props: IMinigameProps): React.ReactElement {
|
|||||||
{hasAugment ? (
|
{hasAugment ? (
|
||||||
<Box sx={{ my: 1 }}>
|
<Box sx={{ my: 1 }}>
|
||||||
<Typography variant="h5">Guard will drop in...</Typography>
|
<Typography variant="h5">Guard will drop in...</Typography>
|
||||||
<GameTimer millis={timeUntilAttacking} onExpire={props.onFailure} noPaper />
|
<GameTimer millis={timeUntilAttacking} onExpire={() => null} noPaper />
|
||||||
</Box>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
|
Loading…
Reference in New Issue
Block a user