From 7dbb285f8a08b4636d3978f4fee4968200fbe6bf Mon Sep 17 00:00:00 2001 From: nickofolas Date: Fri, 11 Mar 2022 17:56:34 -0600 Subject: [PATCH] Simplify conditions --- src/Faction/ui/FactionsRoot.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Faction/ui/FactionsRoot.tsx b/src/Faction/ui/FactionsRoot.tsx index d923c9071..45e750232 100644 --- a/src/Faction/ui/FactionsRoot.tsx +++ b/src/Faction/ui/FactionsRoot.tsx @@ -66,11 +66,10 @@ export function FactionsRoot(props: IProps): React.ReactElement { for (const augName of Object.keys(Augmentations)) { if ( augName === AugmentationNames.NeuroFluxGovernor || - augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 + augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 || + Augmentations[augName].isSpecial ) continue; - if (!Augmentations[augName].isSpecial) { - augs.push(augName) - } + augs.push(augName) } } else { augs = faction.augmentations.slice();