From 584b00228e715012e7d8d1f4584e7922df78e808 Mon Sep 17 00:00:00 2001 From: zenoamaro Date: Sun, 30 Jun 2019 18:18:42 +0200 Subject: [PATCH] Fix shared inventory bug --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 7e82d4d..c415a1b 100644 --- a/src/main.js +++ b/src/main.js @@ -46,7 +46,7 @@ for (let [color, borderColor] of PLAYER_COLORS) { x, y, a, c: color, cb: borderColor, p: PLAYER_INITIAL_POWER, - weapons: [...PLAYER_STARTING_WEAPONS], + weapons: PLAYER_STARTING_WEAPONS.map(x => ({...x})), // FIXME currentWeapon: 0, energy: PLAYER_MAX_ENERGY, ai: i !== 0 ? sample(Object.keys(AI_TYPES)) : undefined,