mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Add has corp to the api player object
This commit is contained in:
parent
2cfa589da6
commit
360b8d8d16
@ -2248,6 +2248,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
jobs: {},
|
jobs: {},
|
||||||
factions: Player.factions.slice(),
|
factions: Player.factions.slice(),
|
||||||
tor: Player.hasTorRouter(),
|
tor: Player.hasTorRouter(),
|
||||||
|
hasCorporation: Player.hasCorporation(),
|
||||||
};
|
};
|
||||||
Object.assign(data.jobs, Player.jobs);
|
Object.assign(data.jobs, Player.jobs);
|
||||||
return data;
|
return data;
|
||||||
|
1
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
1
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -93,6 +93,7 @@ interface Player {
|
|||||||
jobs: any;
|
jobs: any;
|
||||||
factions: string[];
|
factions: string[];
|
||||||
tor: boolean;
|
tor: boolean;
|
||||||
|
hasCorporation: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user