diff --git a/server/gameserver/android.cc b/server/gameserver/android.cc index 4e8431dd..895ceda0 100644 --- a/server/gameserver/android.cc +++ b/server/gameserver/android.cc @@ -11,6 +11,7 @@ #include "mt/Equip.h" #include "mt/Robot.h" +#include "mt/Text.h" Android::Android():Human() { @@ -73,6 +74,29 @@ void Android::Update(int delta_time) return; } } +#ifdef DEBUG + { + if (!dead && + App::Instance()->debug_params.find(119) != App::Instance()->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); + } + if (!dead && + a8::HasBitFlag(status, CS_ForceTeam) && + App::Instance()->debug_params.find(120) != App::Instance()->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); ++updated_times_; }