mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 11:33:47 +01:00
fix joinBladeburner
This commit is contained in:
parent
3346f3539c
commit
752534bc4d
@ -4178,7 +4178,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
},
|
},
|
||||||
joinBladeburnerDivision: function (): any {
|
joinBladeburnerDivision: function (): any {
|
||||||
updateDynamicRam("joinBladeburnerDivision", getRamCost("bladeburner", "joinBladeburnerDivision"));
|
updateDynamicRam("joinBladeburnerDivision", getRamCost("bladeburner", "joinBladeburnerDivision"));
|
||||||
checkBladeburnerAccess("joinBladeburnerDivision", true);
|
|
||||||
const bladeburner = Player.bladeburner;
|
const bladeburner = Player.bladeburner;
|
||||||
if (bladeburner === null) throw new Error("Should not be called without Bladeburner");
|
if (bladeburner === null) throw new Error("Should not be called without Bladeburner");
|
||||||
if (Player.bitNodeN === 7 || SourceFileFlags[7] > 0) {
|
if (Player.bitNodeN === 7 || SourceFileFlags[7] > 0) {
|
||||||
@ -4196,12 +4195,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
Player.bladeburner = new Bladeburner(Player);
|
Player.bladeburner = new Bladeburner(Player);
|
||||||
workerScript.log("joinBladeburnerDivision", "You have been accepted into the Bladeburner division");
|
workerScript.log("joinBladeburnerDivision", "You have been accepted into the Bladeburner division");
|
||||||
|
|
||||||
const worldHeader = document.getElementById("world-menu-header");
|
|
||||||
if (worldHeader instanceof HTMLElement) {
|
|
||||||
worldHeader.click();
|
|
||||||
worldHeader.click();
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
workerScript.log(
|
workerScript.log(
|
||||||
|
Loading…
Reference in New Issue
Block a user