Merge pull request #2447 from Feodoric/fix-gang-augments

Fix #2446 - ns.purchaseAugment() can no longer buy NF from gang
This commit is contained in:
hydroflame 2022-01-08 12:41:25 -05:00 committed by GitHub
commit 1df5e5a2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,6 +166,8 @@ export function NetscriptSingularity(
let augs = []; let augs = [];
if (player.hasGangWith(faction)) { if (player.hasGangWith(faction)) {
for (const augName in Augmentations) { for (const augName in Augmentations) {
if (augName === AugmentationNames.NeuroFluxGovernor) continue;
if (augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) continue;
const tempAug = Augmentations[augName]; const tempAug = Augmentations[augName];
if (!tempAug.isSpecial) { if (!tempAug.isSpecial) {
augs.push(augName); augs.push(augName);