diff --git a/src/Faction/ui/AugmentationsPage.tsx b/src/Faction/ui/AugmentationsPage.tsx index e086a4ee4..d29f239d7 100644 --- a/src/Faction/ui/AugmentationsPage.tsx +++ b/src/Faction/ui/AugmentationsPage.tsx @@ -48,12 +48,13 @@ export function AugmentationsPage(props: IProps): React.ReactElement { const aug = Augmentations[augName]; if ( augName === AugmentationNames.NeuroFluxGovernor || - augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 || + (augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) || // Special augs (i.e. Bladeburner augs) aug.isSpecial || // Exclusive augs (i.e. QLink) - (aug.factions.length <= 1 && !props.faction.augmentations.includes(augName)) - ) continue; + (aug.factions.length <= 1 && !props.faction.augmentations.includes(augName) && player.bitNodeN !== 2) + ) + continue; augs.push(augName); } diff --git a/src/Faction/ui/FactionsRoot.tsx b/src/Faction/ui/FactionsRoot.tsx index ffe255510..e5c5b292f 100644 --- a/src/Faction/ui/FactionsRoot.tsx +++ b/src/Faction/ui/FactionsRoot.tsx @@ -1,14 +1,6 @@ import React, { useEffect, useState } from "react"; -import { - Box, - Button, - Container, - Paper, - TableBody, - TableRow, - Typography -} from "@mui/material"; +import { Box, Button, Container, Paper, TableBody, TableRow, Typography } from "@mui/material"; import { Augmentations } from "../../Augmentation/Augmentations"; import { AugmentationNames } from "../../Augmentation/data/AugmentationNames"; @@ -68,27 +60,25 @@ export function FactionsRoot(props: IProps): React.ReactElement { const aug = Augmentations[augName]; if ( augName === AugmentationNames.NeuroFluxGovernor || - augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 || + (augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) || // Special augs (i.e. Bladeburner augs) aug.isSpecial || // Exclusive augs (i.e. QLink) - (aug.factions.length <= 1 && !faction.augmentations.includes(augName)) - ) continue; - augs.push(augName) + (aug.factions.length <= 1 && !faction.augmentations.includes(augName) && player.bitNodeN !== 2) + ) + continue; + augs.push(augName); } } else { augs = faction.augmentations.slice(); } - return augs.filter( - (augmentation: string) => !player.hasAugmentation(augmentation) - ).length; - } + return augs.filter((augmentation: string) => !player.hasAugmentation(augmentation)).length; + }; - const allFactions = Object.values(FactionNames).map(faction => faction as string) + const allFactions = Object.values(FactionNames).map((faction) => faction as string); const allJoinedFactions = props.player.factions.slice(0); - allJoinedFactions.sort((a, b) => - allFactions.indexOf(a) - allFactions.indexOf(b)); + allJoinedFactions.sort((a, b) => allFactions.indexOf(a) - allFactions.indexOf(b)); return ( @@ -120,7 +110,7 @@ export function FactionsRoot(props: IProps): React.ReactElement { -