From beef2d15198ee1b9bd07c917c8baf0721857ff07 Mon Sep 17 00:00:00 2001 From: Atsuyo-INSA Date: Thu, 7 Dec 2023 13:43:59 +0100 Subject: [PATCH] smol changes --- js/class.js | 1 - js/network.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/class.js b/js/class.js index 01d5a91..1029e81 100644 --- a/js/class.js +++ b/js/class.js @@ -36,7 +36,6 @@ class Player this.health-=amount; if(this.health<=0) { - console.log(network); network.died(this.id,killerId); this.health=10; } diff --git a/js/network.js b/js/network.js index 758b78a..a275f0c 100644 --- a/js/network.js +++ b/js/network.js @@ -38,7 +38,7 @@ class Network{ this.bulletsToAdd.push(new Bullet(data.data.x,data.data.y,data.data.dx,data.data.dy,data.data.id)); break; case "died": - console.log("player ",data.data.id," died"); + console.log("player",data.data.id,"died"); default: break; }