mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Simplify conditions
This commit is contained in:
parent
7220cab437
commit
7dbb285f8a
@ -66,11 +66,10 @@ 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user