mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
parent
5696db2788
commit
478646290e
@ -8,8 +8,8 @@ import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
import { Player } from "@player";
|
import { Player } from "@player";
|
||||||
import { saveObject } from "../../SaveObject";
|
|
||||||
import { Engine } from "../../engine";
|
import { Engine } from "../../engine";
|
||||||
|
import { dialogBoxCreate } from "../../ui/React/DialogBox";
|
||||||
|
|
||||||
// Update as additional BitNodes get implemented
|
// Update as additional BitNodes get implemented
|
||||||
|
|
||||||
@ -18,8 +18,7 @@ export function TimeSkip(): React.ReactElement {
|
|||||||
return () => {
|
return () => {
|
||||||
Player.lastUpdate -= time;
|
Player.lastUpdate -= time;
|
||||||
Engine._lastUpdate -= time;
|
Engine._lastUpdate -= time;
|
||||||
saveObject.saveGame();
|
dialogBoxCreate("Time skip effect has been applied");
|
||||||
setTimeout(() => location.reload(), 1000);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user