hotfix getPlayer missing factions (#831)

This commit is contained in:
hydroflame
2021-04-01 12:55:43 -04:00
committed by GitHub
parent c7febd5551
commit 708c73fa0f
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -2970,6 +2970,8 @@ function NetscriptFunctions(workerScript) {
playtimeSinceLastAug: Player.playtimeSinceLastAug,
playtimeSinceLastBitnode: Player.playtimeSinceLastBitnode,
jobs: {},
factions: Player.factions.slice(),
tor: SpecialServerIps.hasOwnProperty("Darkweb Server"),
};
Object.assign(data.jobs, Player.jobs);
return data;