Simplify conditions

This commit is contained in:
nickofolas 2022-03-11 17:56:34 -06:00
parent 7220cab437
commit 7dbb285f8a

@ -66,12 +66,11 @@ export function FactionsRoot(props: IProps): React.ReactElement {
for (const augName of Object.keys(Augmentations)) { for (const augName of Object.keys(Augmentations)) {
if ( if (
augName === AugmentationNames.NeuroFluxGovernor || augName === AugmentationNames.NeuroFluxGovernor ||
augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 ||
Augmentations[augName].isSpecial
) continue; ) continue;
if (!Augmentations[augName].isSpecial) {
augs.push(augName) augs.push(augName)
} }
}
} else { } else {
augs = faction.augmentations.slice(); augs = faction.augmentations.slice();
} }