Add has corp to the api player object

This commit is contained in:
pigalot 2022-01-11 20:08:14 +00:00
parent 2cfa589da6
commit 360b8d8d16
2 changed files with 2 additions and 0 deletions

@ -2248,6 +2248,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
jobs: {},
factions: Player.factions.slice(),
tor: Player.hasTorRouter(),
hasCorporation: Player.hasCorporation(),
};
Object.assign(data.jobs, Player.jobs);
return data;

@ -93,6 +93,7 @@ interface Player {
jobs: any;
factions: string[];
tor: boolean;
hasCorporation: boolean;
}
/**