UI: Show BitNode multipliers in BN 5.1 (#1398)

This commit is contained in:
catloversg
2024-06-16 06:35:32 +07:00
committed by GitHub
parent f6de21ea18
commit ceb58bc6b3
2 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -229,8 +229,6 @@ export function CharacterStats(): React.ReactElement {
}
timeRows.push(["Total", convertTimeMsToTimeElapsedString(Player.totalPlaytime)]);
let showBitNodeMults = false;
if (Player.sourceFileLvl(5) > 0) showBitNodeMults = true;
return (
<Container maxWidth="lg" disableGutters sx={{ mx: 0 }}>
<Typography variant="h4">Stats</Typography>
@@ -592,7 +590,7 @@ export function CharacterStats(): React.ReactElement {
<CurrentBitNode />
{showBitNodeMults && (
{(Player.bitNodeN === 5 || Player.sourceFileLvl(5) > 0) && (
<Paper sx={{ p: 1, mb: 1 }}>
<Typography variant="h5">BitNode Multipliers</Typography>
<BitNodeMultipliersDisplay n={Player.bitNodeN} />