This commit is contained in:
aozhiwei 2023-12-25 16:37:49 +08:00
parent 72b288c2a9
commit 2f01c27bbc
2 changed files with 17 additions and 0 deletions

View File

@ -84,6 +84,19 @@ void Android::Update(int delta_time)
return; return;
} }
} }
#ifdef MYDEBUG
if (room->BattleStarted()) {
if (!dead &&
room->debug_params.find(119) != room->debug_params.end()) {
BeKill(VP_Gas,
TEXT("battle_server_killer_gas", "毒圈"),
VW_Gas,
VP_Gas,
TEXT("battle_server_killer_gas", "毒圈"));
a8::UnSetBitFlag(status, CS_Disable);
}
}
#endif
InternalUpdate(delta_time); InternalUpdate(delta_time);
shot_hold = false; shot_hold = false;
CheckShotHold(); CheckShotHold();

View File

@ -83,6 +83,10 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
room->stop_world = true; room->stop_world = true;
} else if (cmd == "start_world") { } else if (cmd == "start_world") {
room->stop_world = false; room->stop_world = false;
} else if (cmd == "chiji") {
#if DEBUG
room->debug_params[119] = 1;
#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();