v1 #4
共有 1 個檔案被更改,包括 6 行新增 和 0 行删除
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
載入中…
新增問題並參考