mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
allbuild commit /usr/bin/git
This commit is contained in:
parent
a6e256ad5a
commit
48e73a9131
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -45,16 +45,16 @@ export function AugmentationsPage(props: IProps): React.ReactElement {
|
|||||||
if (isPlayersGang) {
|
if (isPlayersGang) {
|
||||||
let augs = Object.values(Augmentations);
|
let augs = Object.values(Augmentations);
|
||||||
|
|
||||||
// Remove blacklisted augs.
|
|
||||||
const blacklist = [AugmentationNames.NeuroFluxGovernor, AugmentationNames.TheRedPill];
|
|
||||||
augs = augs.filter((a) => !blacklist.includes(a.name));
|
|
||||||
|
|
||||||
// Remove special augs.
|
// Remove special augs.
|
||||||
augs = augs.filter((a) => !a.isSpecial);
|
augs = augs.filter((a) => !a.isSpecial);
|
||||||
|
|
||||||
// Remove faction-unique augs outside BN2. (But keep the one for this faction.)
|
|
||||||
if (player.bitNodeN !== 2) {
|
if (player.bitNodeN !== 2) {
|
||||||
|
// Remove faction-unique augs outside BN2. (But keep the one for this faction.)
|
||||||
augs = augs.filter((a) => a.factions.length > 1 || props.faction.augmentations.includes(a.name));
|
augs = augs.filter((a) => a.factions.length > 1 || props.faction.augmentations.includes(a.name));
|
||||||
|
|
||||||
|
// Remove blacklisted augs.
|
||||||
|
const blacklist = [AugmentationNames.NeuroFluxGovernor, AugmentationNames.TheRedPill];
|
||||||
|
augs = augs.filter((a) => !blacklist.includes(a.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
return augs.map((a) => a.name);
|
return augs.map((a) => a.name);
|
||||||
|
@ -115,16 +115,16 @@ export function NetscriptSingularity(
|
|||||||
if (player.hasGangWith(facname)) {
|
if (player.hasGangWith(facname)) {
|
||||||
let augs = Object.values(Augmentations);
|
let augs = Object.values(Augmentations);
|
||||||
|
|
||||||
// Remove blacklisted augs.
|
|
||||||
const blacklist = [AugmentationNames.NeuroFluxGovernor, AugmentationNames.TheRedPill];
|
|
||||||
augs = augs.filter((a) => !blacklist.includes(a.name));
|
|
||||||
|
|
||||||
// Remove special augs.
|
// Remove special augs.
|
||||||
augs = augs.filter((a) => !a.isSpecial);
|
augs = augs.filter((a) => !a.isSpecial);
|
||||||
|
|
||||||
// Remove faction-unique augs outside BN2. (But keep the one for this faction.)
|
|
||||||
if (player.bitNodeN !== 2) {
|
if (player.bitNodeN !== 2) {
|
||||||
|
// Remove faction-unique augs outside BN2. (But keep the one for this faction.)
|
||||||
augs = augs.filter((a) => a.factions.length > 1 || Factions[facname].augmentations.includes(a.name));
|
augs = augs.filter((a) => a.factions.length > 1 || Factions[facname].augmentations.includes(a.name));
|
||||||
|
|
||||||
|
// Remove blacklisted augs.
|
||||||
|
const blacklist = [AugmentationNames.NeuroFluxGovernor, AugmentationNames.TheRedPill];
|
||||||
|
augs = augs.filter((a) => !blacklist.includes(a.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
return augs.map((a) => a.name);
|
return augs.map((a) => a.name);
|
||||||
|
Loading…
Reference in New Issue
Block a user