英雄血量变化增加日志
This commit is contained in:
parent
9bb5c397cc
commit
b6a90db867
@ -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});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user