From 3cbb926fd853e73fe1b72b678dba9029f586ba37 Mon Sep 17 00:00:00 2001 From: phyzical Date: Sat, 12 Mar 2022 12:36:47 +0800 Subject: [PATCH] expose the inBladeburner on the player object --- src/NetscriptFunctions.ts | 1 + src/ScriptEditor/NetscriptDefinitions.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index f0e3e0a80..4a49f27ab 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -2273,6 +2273,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { jobs: {}, factions: Player.factions.slice(), tor: Player.hasTorRouter(), + inBladeburner: Player.inBladeburner(), hasCorporation: Player.hasCorporation(), }; Object.assign(data.jobs, Player.jobs); diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 86be78cba..c8922f974 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -94,6 +94,7 @@ interface Player { factions: string[]; tor: boolean; hasCorporation: boolean; + inBladeburner: boolean; } /**