mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BB: Allow API Usage in BN 6 without 7 - Grants Augment for BN 7 completion (#1926)
This commit is contained in:
@@ -201,8 +201,8 @@ export function initBitNodes() {
|
||||
<br />
|
||||
Destroying this BitNode will give you Source-File 6, or if you already have this Source-File, it will upgrade
|
||||
its level up to a maximum of 3. This Source-File allows you to access the NSA's {FactionName.Bladeburners}{" "}
|
||||
division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of
|
||||
all your combat stats by:
|
||||
division and Netscript API in other BitNodes. In addition, this Source-File will raise both the level and
|
||||
experience gain rate of all your combat stats by:
|
||||
<ul>
|
||||
<li>Level 1: 8%</li>
|
||||
<li>Level 2: 12%</li>
|
||||
@@ -236,7 +236,7 @@ export function initBitNodes() {
|
||||
<ul>
|
||||
<li>Level 1: 8%</li>
|
||||
<li>Level 2: 12%</li>
|
||||
<li>Level 3: 14%</li>
|
||||
<li>Level 3: 14% and begin with The Blade's Simulacrum</li>
|
||||
</ul>
|
||||
</>
|
||||
),
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { canAccessBitNodeFeature } from "../../BitNode/BitNodeUtils";
|
||||
import { Bladeburner } from "../../Bladeburner/Bladeburner";
|
||||
|
||||
import { AugmentationName } from "@enums";
|
||||
import type { PlayerObject } from "./PlayerObject";
|
||||
|
||||
export function canAccessBladeburner(this: PlayerObject): boolean {
|
||||
@@ -10,4 +10,11 @@ export function canAccessBladeburner(this: PlayerObject): boolean {
|
||||
export function startBladeburner(this: PlayerObject): void {
|
||||
this.bladeburner = new Bladeburner();
|
||||
this.bladeburner.init();
|
||||
// Give Blades Simulacrum if you have unlocked it
|
||||
if (this.sourceFileLvl(7) >= 3) {
|
||||
this.augmentations.push({
|
||||
name: AugmentationName.BladesSimulacrum,
|
||||
level: 1,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user