Skip to content

Commit

Permalink
adding int stat to sleeve overview and more stats overview (bitburner…
Browse files Browse the repository at this point in the history
  • Loading branch information
Caldwell-74 authored and G4mingJon4s committed Mar 23, 2024
1 parent 25a10a2 commit 9f986e7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/PersonObjects/Sleeve/ui/MoreStatsModal.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -28,6 +29,16 @@ export function MoreStatsModal(props: IProps): React.ReactElement {
],
[<>Agility:&nbsp;</>, props.sleeve.skills.agility, <>&nbsp;({formatExp(props.sleeve.exp.agility)} exp)</>],
[<>Charisma:&nbsp;</>, props.sleeve.skills.charisma, <>&nbsp;({formatExp(props.sleeve.exp.charisma)} exp)</>],
[
...(Player.sourceFileLvl(5) > 0 || Player.bitNodeN === 5
? [
<>Intelligence:&nbsp;</>,
props.sleeve.skills.intelligence,
<>&nbsp;({formatExp(props.sleeve.exp.intelligence)} exp)</>,
]
: [<></>]),
],
[<></>],
]}
title="Stats:"
/>
Expand Down
7 changes: 7 additions & 0 deletions src/PersonObjects/Sleeve/ui/StatsElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down

0 comments on commit 9f986e7

Please sign in to comment.