mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Consistently respect SF5 BN mult unlock
This commit is contained in:
parent
e3e77ea2cc
commit
3d296e2bf0
@ -8,6 +8,7 @@ import { Player } from "../../Player";
|
|||||||
import { numeralWrapper } from "../../ui/numeralFormat";
|
import { numeralWrapper } from "../../ui/numeralFormat";
|
||||||
import { Augmentations } from "../Augmentations";
|
import { Augmentations } from "../Augmentations";
|
||||||
import { DoubleArrow } from "@mui/icons-material";
|
import { DoubleArrow } from "@mui/icons-material";
|
||||||
|
import { SourceFileFlags } from "../../SourceFile/SourceFileFlags";
|
||||||
import { Settings } from "../../Settings/Settings";
|
import { Settings } from "../../Settings/Settings";
|
||||||
|
|
||||||
function calculateAugmentedStats(): any {
|
function calculateAugmentedStats(): any {
|
||||||
@ -29,7 +30,7 @@ interface BitNodeModifiedStatsProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function BitNodeModifiedStats(props: BitNodeModifiedStatsProps): React.ReactElement {
|
function BitNodeModifiedStats(props: BitNodeModifiedStatsProps): React.ReactElement {
|
||||||
if (props.mult === 1)
|
if (props.mult === 1 || SourceFileFlags[5] === 0)
|
||||||
return <Typography color={props.color}>{numeralWrapper.formatPercentage(props.base)}</Typography>;
|
return <Typography color={props.color}>{numeralWrapper.formatPercentage(props.base)}</Typography>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -348,6 +348,7 @@ export function CharacterStats(): React.ReactElement {
|
|||||||
<Paper sx={{ p: 1 }}>
|
<Paper sx={{ p: 1 }}>
|
||||||
<Typography variant="h5" color="primary" sx={{ display: "flex", alignItems: "center", flexWrap: "wrap" }}>
|
<Typography variant="h5" color="primary" sx={{ display: "flex", alignItems: "center", flexWrap: "wrap" }}>
|
||||||
Multipliers
|
Multipliers
|
||||||
|
{SourceFileFlags[5] > 0 && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
<Typography>
|
<Typography>
|
||||||
@ -358,13 +359,14 @@ export function CharacterStats(): React.ReactElement {
|
|||||||
affected by BitNode multipliers.
|
affected by BitNode multipliers.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
The dim number is the raw multiplier, and the undimmed number is the effective multiplier, as dictated
|
The dim number is the raw multiplier, and the undimmed number is the effective multiplier, as
|
||||||
by the BitNode.
|
dictated by the BitNode.
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Info sx={{ ml: 1, mb: 0.5 }} color="info" />
|
<Info sx={{ ml: 1, mb: 0.5 }} color="info" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box sx={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 1 }}>
|
<Box sx={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 1 }}>
|
||||||
<Box>
|
<Box>
|
||||||
|
Loading…
Reference in New Issue
Block a user