From 0d6d05db49b3ecaf1246418c4d188108ebd55c6b Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Tue, 24 Aug 2021 20:08:29 -0400 Subject: [PATCH] Fix joining blade via ns Pass Player as an argument in Bladeburner constructor call for ns.bladeburner.joinBladeburnerDivision() --- src/NetscriptFunctions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 7ec8ce5fd..91217fc61 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -4065,7 +4065,7 @@ function NetscriptFunctions(workerScript) { return true; // Already member } else if (Player.strength >= 100 && Player.defense >= 100 && Player.dexterity >= 100 && Player.agility >= 100) { - Player.bladeburner = new Bladeburner(); + Player.bladeburner = new Bladeburner(Player); workerScript.log("joinBladeburnerDivision", "You have been accepted into the Bladeburner division"); const worldHeader = document.getElementById("world-menu-header"); @@ -4546,4 +4546,4 @@ function NetscriptFunctions(workerScript) { return functions; } // End NetscriptFunction() -export { NetscriptFunctions }; \ No newline at end of file +export { NetscriptFunctions };