mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
adding int stat to sleeve overview and more stats overview (#1030)
This commit is contained in:
parent
c5ca30d796
commit
2ac0470cea
@ -1,4 +1,5 @@
|
||||
import { Sleeve } from "../Sleeve";
|
||||
import { Player } from "@player";
|
||||
import { formatExp, formatPercent } from "../../../ui/formatNumber";
|
||||
import { convertTimeMsToTimeElapsedString } from "../../../utils/StringHelperFunctions";
|
||||
import { CONSTANTS } from "../../../Constants";
|
||||
@ -28,6 +29,16 @@ export function MoreStatsModal(props: IProps): React.ReactElement {
|
||||
],
|
||||
[<>Agility: </>, props.sleeve.skills.agility, <> ({formatExp(props.sleeve.exp.agility)} exp)</>],
|
||||
[<>Charisma: </>, props.sleeve.skills.charisma, <> ({formatExp(props.sleeve.exp.charisma)} exp)</>],
|
||||
[
|
||||
...(Player.sourceFileLvl(5) > 0 || Player.bitNodeN === 5
|
||||
? [
|
||||
<>Intelligence: </>,
|
||||
props.sleeve.skills.intelligence,
|
||||
<> ({formatExp(props.sleeve.exp.intelligence)} exp)</>,
|
||||
]
|
||||
: [<></>]),
|
||||
],
|
||||
[<></>],
|
||||
]}
|
||||
title="Stats:"
|
||||
/>
|
||||
|
@ -76,6 +76,13 @@ export function StatsElement(props: IProps): React.ReactElement {
|
||||
color={Settings.theme.cha}
|
||||
data={{ level: props.sleeve.skills.charisma, exp: props.sleeve.exp.charisma }}
|
||||
/>
|
||||
{(Player.sourceFileLvl(5) > 0 || Player.bitNodeN === 5) && (
|
||||
<StatsRow
|
||||
name="Intelligence"
|
||||
color={Settings.theme.int}
|
||||
data={{ level: props.sleeve.skills.intelligence, exp: props.sleeve.exp.intelligence }}
|
||||
/>
|
||||
)}
|
||||
<TableRow>
|
||||
<TableCell classes={{ root: classes.cellNone }}>
|
||||
<br />
|
||||
|
Loading…
Reference in New Issue
Block a user