smol changes

This commit is contained in:
Atsuyo-INSA 2023-12-07 13:43:59 +01:00
parent c58f00930a
commit beef2d1519
2 changed files with 1 additions and 2 deletions

View file

@ -36,7 +36,6 @@ class Player
this.health-=amount; this.health-=amount;
if(this.health<=0) if(this.health<=0)
{ {
console.log(network);
network.died(this.id,killerId); network.died(this.id,killerId);
this.health=10; this.health=10;
} }

View file

@ -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)); this.bulletsToAdd.push(new Bullet(data.data.x,data.data.y,data.data.dx,data.data.dy,data.data.id));
break; break;
case "died": case "died":
console.log("player ",data.data.id," died"); console.log("player",data.data.id,"died");
default: default:
break; break;
} }