mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
All the player sub-objects need to be copied.
Not just `mults`. Also, `hacking_chance_mult` still being at the base level appears to be a mistake.
This commit is contained in:
parent
853e9c2e4f
commit
80aafc7d48
@ -1911,10 +1911,9 @@ const base: InternalAPI<NS> = {
|
|||||||
},
|
},
|
||||||
getPlayer: () => (): INetscriptPlayer => {
|
getPlayer: () => (): INetscriptPlayer => {
|
||||||
const data = {
|
const data = {
|
||||||
hp: Player.hp,
|
hp: JSON.parse(JSON.stringify(Player.hp)),
|
||||||
skills: Player.skills,
|
skills: JSON.parse(JSON.stringify(Player.skills)),
|
||||||
exp: Player.exp,
|
exp: JSON.parse(JSON.stringify(Player.exp)),
|
||||||
hacking_chance_mult: Player.mults.hacking_chance,
|
|
||||||
mults: JSON.parse(JSON.stringify(Player.mults)),
|
mults: JSON.parse(JSON.stringify(Player.mults)),
|
||||||
numPeopleKilled: Player.numPeopleKilled,
|
numPeopleKilled: Player.numPeopleKilled,
|
||||||
money: Player.money,
|
money: Player.money,
|
||||||
|
Loading…
Reference in New Issue
Block a user