diff --git a/js/network.js b/js/network.js index e31d675..dee878b 100644 --- a/js/network.js +++ b/js/network.js @@ -55,8 +55,8 @@ class Network{ }) } - died(id){ - this.socket.send(JSON.stringify({type:"died",data:{id: id}})); + died(id, killerId){ + this.socket.send(JSON.stringify({type:"died",data:{id: id, killerId: killerId}})); } update(obj){ //send data to server in order to broadcast