mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-09 23:07:40 +01:00
Implement new aug filtering for gangs
This commit is contained in:
parent
5918e12f01
commit
06425d6d63
@ -45,12 +45,16 @@ export function AugmentationsPage(props: IProps): React.ReactElement {
|
|||||||
if (isPlayersGang) {
|
if (isPlayersGang) {
|
||||||
const augs: string[] = [];
|
const augs: string[] = [];
|
||||||
for (const augName of Object.keys(Augmentations)) {
|
for (const augName of Object.keys(Augmentations)) {
|
||||||
if (augName === AugmentationNames.NeuroFluxGovernor) continue;
|
|
||||||
if (augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) continue;
|
|
||||||
const aug = Augmentations[augName];
|
const aug = Augmentations[augName];
|
||||||
if (!aug.isSpecial) {
|
if (
|
||||||
augs.push(augName);
|
augName === AugmentationNames.NeuroFluxGovernor ||
|
||||||
}
|
augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 ||
|
||||||
|
// Special augs (i.e. Bladeburner augs)
|
||||||
|
aug.isSpecial ||
|
||||||
|
// Exclusive augs (i.e. QLink)
|
||||||
|
(aug.factions.length <= 1 && !props.faction.augmentations.includes(augName))
|
||||||
|
) continue;
|
||||||
|
augs.push(augName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return augs;
|
return augs;
|
||||||
|
@ -64,10 +64,14 @@ export function FactionsRoot(props: IProps): React.ReactElement {
|
|||||||
|
|
||||||
if (isPlayersGang) {
|
if (isPlayersGang) {
|
||||||
for (const augName of Object.keys(Augmentations)) {
|
for (const augName of Object.keys(Augmentations)) {
|
||||||
|
const aug = Augmentations[augName];
|
||||||
if (
|
if (
|
||||||
augName === AugmentationNames.NeuroFluxGovernor ||
|
augName === AugmentationNames.NeuroFluxGovernor ||
|
||||||
augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 ||
|
augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2 ||
|
||||||
Augmentations[augName].isSpecial
|
// Special augs (i.e. Bladeburner augs)
|
||||||
|
aug.isSpecial ||
|
||||||
|
// Exclusive augs (i.e. QLink)
|
||||||
|
(aug.factions.length <= 1 && !faction.augmentations.includes(augName))
|
||||||
) continue;
|
) continue;
|
||||||
augs.push(augName)
|
augs.push(augName)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user