mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Update purchaseAugmentation rules
This commit is contained in:
parent
96dd059f28
commit
1c696b5518
@ -167,12 +167,17 @@ export function NetscriptSingularity(
|
|||||||
let augs = [];
|
let augs = [];
|
||||||
if (player.hasGangWith(faction)) {
|
if (player.hasGangWith(faction)) {
|
||||||
for (const augName of Object.keys(Augmentations)) {
|
for (const augName of Object.keys(Augmentations)) {
|
||||||
if (augName === AugmentationNames.NeuroFluxGovernor) continue;
|
const aug = Augmentations[augName];
|
||||||
if (augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) continue;
|
if (
|
||||||
const tempAug = Augmentations[augName];
|
augName === AugmentationNames.NeuroFluxGovernor ||
|
||||||
if (!tempAug.isSpecial) {
|
(augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) ||
|
||||||
augs.push(augName);
|
// Special augs (i.e. Bladeburner augs)
|
||||||
}
|
aug.isSpecial ||
|
||||||
|
// Exclusive augs (i.e. QLink)
|
||||||
|
(aug.factions.length <= 1 && !fac.augmentations.includes(augName) && player.bitNodeN !== 2)
|
||||||
|
)
|
||||||
|
continue;
|
||||||
|
augs.push(augName);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
augs = fac.augmentations;
|
augs = fac.augmentations;
|
||||||
|
Loading…
Reference in New Issue
Block a user