diff --git a/src/ui/CharacterStats.tsx b/src/ui/CharacterStats.tsx index 8e6e8b940..26873d197 100644 --- a/src/ui/CharacterStats.tsx +++ b/src/ui/CharacterStats.tsx @@ -19,7 +19,6 @@ import { Money } from "./React/Money"; import { StatsRow } from "./React/StatsRow"; import { StatsTable } from "./React/StatsTable"; - interface EmployersModalProps { open: boolean; onClose: () => void; @@ -101,12 +100,13 @@ function CurrentBitNode(): React.ReactElement { const player = use.Player(); if (player.sourceFiles.length > 0) { const index = "BitNode" + player.bitNodeN; + const currentSourceFile = player.sourceFiles.find((sourceFile) => sourceFile.n == player.bitNodeN); + const lvl = currentSourceFile ? currentSourceFile.lvl : 0; return ( - BitNode {player.bitNodeN}: {BitNodes[index].name} (Level {Math.min(SourceFileFlags[player.bitNodeN] + 1, 3)} - ) + BitNode {player.bitNodeN}: {BitNodes[index].name} (Level {lvl}) {BitNodes[index].info} @@ -239,7 +239,9 @@ export function CharacterStats(): React.ReactElement { return ( <> - + General @@ -344,7 +346,7 @@ export function CharacterStats(): React.ReactElement {
- + Multipliers @@ -495,15 +497,13 @@ export function CharacterStats(): React.ReactElement { - + Time Played {timeRows.map(([name, content]) => ( - - - + ))}