mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Simplify conditions
This commit is contained in:
parent
7220cab437
commit
7dbb285f8a
@ -66,12 +66,11 @@ 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)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
augs = faction.augmentations.slice();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user