mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Merge pull request #4019 from MageKing17/patch-4
API: All the player sub-objects need to be copied for `getPlayer`.
This commit is contained in:
commit
ed76c5e15d
@ -1911,10 +1911,9 @@ const base: InternalAPI<NS> = {
|
||||
},
|
||||
getPlayer: () => (): INetscriptPlayer => {
|
||||
const data = {
|
||||
hp: Player.hp,
|
||||
skills: Player.skills,
|
||||
exp: Player.exp,
|
||||
hacking_chance_mult: Player.mults.hacking_chance,
|
||||
hp: JSON.parse(JSON.stringify(Player.hp)),
|
||||
skills: JSON.parse(JSON.stringify(Player.skills)),
|
||||
exp: JSON.parse(JSON.stringify(Player.exp)),
|
||||
mults: JSON.parse(JSON.stringify(Player.mults)),
|
||||
numPeopleKilled: Player.numPeopleKilled,
|
||||
money: Player.money,
|
||||
|
Loading…
Reference in New Issue
Block a user