diff --git a/src/PersonObjects/Sleeve/ui/MoreStatsModal.tsx b/src/PersonObjects/Sleeve/ui/MoreStatsModal.tsx index fdc29f7eb..98fcc4656 100644 --- a/src/PersonObjects/Sleeve/ui/MoreStatsModal.tsx +++ b/src/PersonObjects/Sleeve/ui/MoreStatsModal.tsx @@ -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:" /> diff --git a/src/PersonObjects/Sleeve/ui/StatsElement.tsx b/src/PersonObjects/Sleeve/ui/StatsElement.tsx index 5a0f9cd15..9beb9f61e 100644 --- a/src/PersonObjects/Sleeve/ui/StatsElement.tsx +++ b/src/PersonObjects/Sleeve/ui/StatsElement.tsx @@ -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) && ( + + )}