From b1f945ff8e2394159ced2dd6adefee9a1a50c0a5 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Sat, 7 May 2022 14:48:26 -0500 Subject: [PATCH] Refactor `CharacterStats` a bit --- src/ui/CharacterStats.tsx | 342 ++++++++++++++++++-------------------- 1 file changed, 163 insertions(+), 179 deletions(-) diff --git a/src/ui/CharacterStats.tsx b/src/ui/CharacterStats.tsx index abc7e6a08..e40f2a1d0 100644 --- a/src/ui/CharacterStats.tsx +++ b/src/ui/CharacterStats.tsx @@ -84,14 +84,12 @@ function CurrentBitNode(): React.ReactElement { const index = "BitNode" + player.bitNodeN; const lvl = player.sourceFileLvl(player.bitNodeN) + 1; return ( - - - - BitNode {player.bitNodeN}: {BitNodes[index].name} (Level {lvl}) - - {BitNodes[index].info} - - + + + BitNode {player.bitNodeN}: {BitNodes[index].name} (Level {lvl}) + + {BitNodes[index].info} + ); } @@ -332,185 +330,171 @@ export function CharacterStats(): React.ReactElement { - - - - Multipliers - {player.sourceFileLvl(5) > 0 && ( - - Displays your current multipliers. -
-
- When there is a dim number next to a multiplier, that means that the multiplier in question is being - affected by BitNode multipliers. -
-
- The dim number is the raw multiplier, and the undimmed number is the effective multiplier, as - dictated by the BitNode. -
- } - > - - - )} - - - - - - - - - - - - + + + Multipliers + {player.sourceFileLvl(5) > 0 && ( + + Displays your current multipliers. +
+
+ When there is a dim number next to a multiplier, that means that the multiplier in question is being + affected by BitNode multipliers. +
+
+ The dim number is the raw multiplier, and the undimmed number is the effective multiplier, as dictated + by the BitNode. +
+ } + > + + + )} + + + + + + + + + + + + + + + + + {player.canAccessBladeburner() && ( - - - {player.canAccessBladeburner() && ( - - )} - + )} -
-
+
+
+ + + Time Played + + + {timeRows.map(([name, content]) => ( + + ))} + +
+
- - - Time Played - - - {timeRows.map(([name, content]) => ( - - ))} - -
-
-
setMoneyOpen(false)} /> setEmployersOpen(false)} />