mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
INFILTRATION: Increase timePreparing in SlashGame if players have WKSharmonizer (#1232)
This commit is contained in:
parent
dc4a85e591
commit
4d3dbf169d
@ -34,7 +34,8 @@ export function SlashGame({ difficulty, onSuccess, onFailure }: IMinigameProps):
|
|||||||
// Determine timeframes for game phase changes
|
// Determine timeframes for game phase changes
|
||||||
const newDifficulty: Difficulty = { window: 0 };
|
const newDifficulty: Difficulty = { window: 0 };
|
||||||
interpolate(difficulties, difficulty, newDifficulty);
|
interpolate(difficulties, difficulty, newDifficulty);
|
||||||
const timePreparing = newDifficulty.window;
|
const timePreparing =
|
||||||
|
newDifficulty.window * (Player.hasAugmentation(AugmentationName.WKSharmonizer, true) ? 1.3 : 1);
|
||||||
const timeAttacking = 250;
|
const timeAttacking = 250;
|
||||||
const timeGuarding = Math.random() * 3250 + 1500 - (timeAttacking + timePreparing);
|
const timeGuarding = Math.random() * 3250 + 1500 - (timeAttacking + timePreparing);
|
||||||
|
|
||||||
@ -67,7 +68,7 @@ export function SlashGame({ difficulty, onSuccess, onFailure }: IMinigameProps):
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<GameTimer millis={5000} onExpire={onFailure} />
|
<GameTimer millis={5000} onExpire={onFailure} ignoreAugment_WKSharmonizer />
|
||||||
<Paper sx={{ display: "grid", justifyItems: "center" }}>
|
<Paper sx={{ display: "grid", justifyItems: "center" }}>
|
||||||
<Typography variant="h4">Attack when his guard is down!</Typography>
|
<Typography variant="h4">Attack when his guard is down!</Typography>
|
||||||
{hasAugment && (
|
{hasAugment && (
|
||||||
|
Loading…
Reference in New Issue
Block a user