mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +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 { Sleeve } from "../Sleeve";
|
||||||
|
import { Player } from "@player";
|
||||||
import { formatExp, formatPercent } from "../../../ui/formatNumber";
|
import { formatExp, formatPercent } from "../../../ui/formatNumber";
|
||||||
import { convertTimeMsToTimeElapsedString } from "../../../utils/StringHelperFunctions";
|
import { convertTimeMsToTimeElapsedString } from "../../../utils/StringHelperFunctions";
|
||||||
import { CONSTANTS } from "../../../Constants";
|
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)</>],
|
[<>Agility: </>, props.sleeve.skills.agility, <> ({formatExp(props.sleeve.exp.agility)} exp)</>],
|
||||||
[<>Charisma: </>, props.sleeve.skills.charisma, <> ({formatExp(props.sleeve.exp.charisma)} 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:"
|
title="Stats:"
|
||||||
/>
|
/>
|
||||||
|
@ -76,6 +76,13 @@ export function StatsElement(props: IProps): React.ReactElement {
|
|||||||
color={Settings.theme.cha}
|
color={Settings.theme.cha}
|
||||||
data={{ level: props.sleeve.skills.charisma, exp: props.sleeve.exp.charisma }}
|
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>
|
<TableRow>
|
||||||
<TableCell classes={{ root: classes.cellNone }}>
|
<TableCell classes={{ root: classes.cellNone }}>
|
||||||
<br />
|
<br />
|
||||||
|
Loading…
Reference in New Issue
Block a user