BB: Allow API Usage in BN 6 without 7 - Grants Augment for BN 7 completion (#1926)

This commit is contained in:
Sphyxis
2025-01-25 10:12:51 -07:00
committed by GitHub
parent 6c7972dc60
commit 97d248419d
3 changed files with 15 additions and 6 deletions
+4 -2
View File
@@ -26,7 +26,7 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
return;
};
const getBladeburner = function (ctx: NetscriptContext): Bladeburner {
const apiAccess = canAccessBitNodeFeature(7);
const apiAccess = canAccessBitNodeFeature(7) || canAccessBitNodeFeature(6);
if (!apiAccess) {
throw helpers.errorMessage(ctx, "You have not unlocked the Bladeburner API.", "API ACCESS");
}
@@ -307,7 +307,9 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
return !!attempt.success;
},
joinBladeburnerDivision: (ctx) => () => {
if (!canAccessBitNodeFeature(7) || Player.bitNodeOptions.disableBladeburner) {
if (!canAccessBitNodeFeature(7) && !canAccessBitNodeFeature(6)) {
return false; //Does not have bitnode 6 or 7
} else if (Player.bitNodeOptions.disableBladeburner) {
return false;
}
if (currentNodeMults.BladeburnerRank === 0) {