v1 #4
1 mainīti faili ar 6 papildinājumiem un 0 dzēšanām
|
|
@ -41,6 +41,12 @@ class Player
|
||||||
this.death++;
|
this.death++;
|
||||||
this.health=defaulthealth;
|
this.health=defaulthealth;
|
||||||
|
|
||||||
|
players.forEach((p) => {
|
||||||
|
if(p.id==killerId) {
|
||||||
|
p.kill++;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
net.died(this.id,killerId);
|
net.died(this.id,killerId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Notiek ielāde…
Atsaukties uz šo jaunā problēmā