mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 20:55:44 +01:00
GANG: added effective text to gang UI gains (#1379)
This commit is contained in:
parent
7b3265346d
commit
f25756916a
@ -14,6 +14,7 @@ import { useGang } from "./Context";
|
|||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import Tooltip from "@mui/material/Tooltip";
|
import Tooltip from "@mui/material/Tooltip";
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
|
import { GangConstants } from "../data/Constants";
|
||||||
|
|
||||||
export function GangStats(): React.ReactElement {
|
export function GangStats(): React.ReactElement {
|
||||||
const gang = useGang();
|
const gang = useGang();
|
||||||
@ -40,7 +41,10 @@ export function GangStats(): React.ReactElement {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Typography>
|
<Typography>
|
||||||
Respect: {formatRespect(gang.respect)} ({formatRespect(5 * gang.respectGainRate)} / sec)
|
Respect: {formatRespect(gang.respect)} ({formatRespect(5 * gang.respectGainRate)} / sec){" "}
|
||||||
|
{gang.storedCycles > 2 * GangConstants.maxCyclesToProcess
|
||||||
|
? `[Effective Gain: ${formatRespect(5 * gang.respectGainRate * GangConstants.maxCyclesToProcess)} / sec]`
|
||||||
|
: ""}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Box>
|
</Box>
|
||||||
@ -55,7 +59,10 @@ export function GangStats(): React.ReactElement {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Typography>
|
<Typography>
|
||||||
Wanted Level: {formatWanted(gang.wanted)} ({formatWanted(5 * gang.wantedGainRate)} / sec)
|
Wanted Level: {formatWanted(gang.wanted)} ({formatWanted(5 * gang.wantedGainRate)} / sec){" "}
|
||||||
|
{gang.storedCycles > 2 * GangConstants.maxCyclesToProcess
|
||||||
|
? `[Effective Gain: ${formatWanted(5 * gang.wantedGainRate * GangConstants.maxCyclesToProcess)} / sec]`
|
||||||
|
: ""}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Box>
|
</Box>
|
||||||
@ -69,7 +76,14 @@ export function GangStats(): React.ReactElement {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Typography>
|
<Typography>
|
||||||
Money gain rate: <MoneyRate money={5 * gang.moneyGainRate} />
|
Money gain rate: <MoneyRate money={5 * gang.moneyGainRate} />{" "}
|
||||||
|
{gang.storedCycles > 2 * GangConstants.maxCyclesToProcess ? "[Effective Gain:" : ""}{" "}
|
||||||
|
{gang.storedCycles > 2 * GangConstants.maxCyclesToProcess ? (
|
||||||
|
<MoneyRate money={5 * gang.moneyGainRate * GangConstants.maxCyclesToProcess} />
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
|
{gang.storedCycles > 2 * GangConstants.maxCyclesToProcess ? "]" : ""}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box display="flex">
|
<Box display="flex">
|
||||||
|
Loading…
Reference in New Issue
Block a user