1
This commit is contained in:
parent
2fa59af84a
commit
e13bf7465c
@ -96,6 +96,19 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
|
|||||||
},
|
},
|
||||||
&xtimer_attacher);
|
&xtimer_attacher);
|
||||||
#endif
|
#endif
|
||||||
|
} else if (cmd == "disable_gas_damage") {
|
||||||
|
#if MYDEBUG
|
||||||
|
room->debug_params[120] = 1;
|
||||||
|
room->xtimer.SetTimeoutEx
|
||||||
|
(SERVER_FRAME_RATE * 60 * 10,
|
||||||
|
[this] (int event, const a8::Args* args)
|
||||||
|
{
|
||||||
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
|
room->debug_params[120] = 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
&xtimer_attacher);
|
||||||
|
#endif
|
||||||
} else if (cmd == "add_hp") {
|
} else if (cmd == "add_hp") {
|
||||||
if (cmds.size() > 1) {
|
if (cmds.size() > 1) {
|
||||||
float hp = a8::XValue(cmds[1]).GetDouble();
|
float hp = a8::XValue(cmds[1]).GetDouble();
|
||||||
|
@ -1353,6 +1353,12 @@ void Creature::UpdatePoisoning()
|
|||||||
poisoning_time = 0;
|
poisoning_time = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#ifdef MYDEBUG
|
||||||
|
if (room->debug_params.find(120) != room->debug_params.end()) {
|
||||||
|
poisoning_time = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
bool need_notify = poisoning_time > 1000;
|
bool need_notify = poisoning_time > 1000;
|
||||||
while (poisoning_time > 1000) {
|
while (poisoning_time > 1000) {
|
||||||
float dmg = 0;
|
float dmg = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user