Fix shared inventory bug

This commit is contained in:
zenoamaro committed 2019-06-30 18:19:44 +02:00
1 parent 34ba096146
commit 584b00228e
1 file changed
+1 -1
+1 -1
View File
@@ -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,