mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 08:42:53 +02:00
Display bonus time in sleeve detailed stats panel
Also adds a field to modify the stored cycles in the dev menu.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { Sleeve } from "../Sleeve";
|
||||
import { numeralWrapper } from "../../../ui/numeralFormat";
|
||||
import { convertTimeMsToTimeElapsedString } from "../../../utils/StringHelperFunctions";
|
||||
import { CONSTANTS } from "../../../Constants";
|
||||
import { Typography } from "@mui/material";
|
||||
import { StatsTable } from "../../../ui/React/StatsTable";
|
||||
import { Modal } from "../../../ui/React/Modal";
|
||||
import React from "react";
|
||||
@@ -80,6 +83,13 @@ export function MoreStatsModal(props: IProps): React.ReactElement {
|
||||
]}
|
||||
title="Multipliers:"
|
||||
/>
|
||||
|
||||
{/* Check for storedCycles to be a bit over 0 to prevent jittering */}
|
||||
{props.sleeve.storedCycles > 10 && (
|
||||
<Typography sx={{ py: 2 }}>
|
||||
Bonus Time: {convertTimeMsToTimeElapsedString(props.sleeve.storedCycles * CONSTANTS.MilliPerCycle)}
|
||||
</Typography>
|
||||
)}
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user