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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

@ -93,6 +93,8 @@ getPlayer() Netscript Function
playtimeSinceLastAug playtimeSinceLastAug
playtimeSinceLastBitnode playtimeSinceLastBitnode
jobs jobs
factions
tor
} }
Example:: Example::

@ -2970,6 +2970,8 @@ function NetscriptFunctions(workerScript) {
playtimeSinceLastAug: Player.playtimeSinceLastAug, playtimeSinceLastAug: Player.playtimeSinceLastAug,
playtimeSinceLastBitnode: Player.playtimeSinceLastBitnode, playtimeSinceLastBitnode: Player.playtimeSinceLastBitnode,
jobs: {}, jobs: {},
factions: Player.factions.slice(),
tor: SpecialServerIps.hasOwnProperty("Darkweb Server"),
}; };
Object.assign(data.jobs, Player.jobs); Object.assign(data.jobs, Player.jobs);
return data; return data;