1
This commit is contained in:
parent
4c2c027bcc
commit
417796a65f
@ -1253,6 +1253,14 @@ void Creature::UpdatePoisoning()
|
|||||||
VP_Gas,
|
VP_Gas,
|
||||||
TEXT("battle_server_killer_gas", "毒圈"),
|
TEXT("battle_server_killer_gas", "毒圈"),
|
||||||
dmg_out);
|
dmg_out);
|
||||||
|
if (IsPlayer()) {
|
||||||
|
int eliminate_time = std::min(30.0f, GetHP() / std::max(1.0f, dmg_out));
|
||||||
|
room->frame_event.AddPropChg(GetWeakPtrRef(),
|
||||||
|
kPropEliminateTime,
|
||||||
|
0,
|
||||||
|
eliminate_time,
|
||||||
|
true);
|
||||||
|
}
|
||||||
if (dead) {
|
if (dead) {
|
||||||
poisoning_time = 0;
|
poisoning_time = 0;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user