英雄血量变化增加日志

This commit is contained in:
zhl 2020-12-25 11:29:57 +08:00
parent 9bb5c397cc
commit b6a90db867

View File

@ -113,6 +113,7 @@ Object.defineProperties(Room.prototype, {
return 0; return 0;
} else { } else {
let dstHp = player.hp + (hp | 0); let dstHp = player.hp + (hp | 0);
debugRoom(`更新血量: ${player.id} ${player.hp} -> ${hp}`);
if (dstHp <= 0) { if (dstHp <= 0) {
dstHp = 0; dstHp = 0;
this.dispatcher.dispatch(new PlayDeadCommand(), {player: player}); this.dispatcher.dispatch(new PlayDeadCommand(), {player: player});