This commit is contained in:
aozhiwei 2024-08-29 13:15:27 +08:00
parent 2b9e89a002
commit f4f0120da6
2 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,9 @@ void CustomBattle::ParseResult(a8::XObject& obj)
start_time_ = obj.Get("start_time"); start_time_ = obj.Get("start_time");
is_newbie_battle_ = obj.Get("is_newbie_battle"); is_newbie_battle_ = obj.Get("is_newbie_battle");
sign_ = obj.Get("sign").GetString(); sign_ = obj.Get("sign").GetString();
#ifdef MYDEBUG
is_newbie_battle_ = 1;
#endif
const mt::Map* map_meta = mt::Map::GetById(map_id_); const mt::Map* map_meta = mt::Map::GetById(map_id_);
if (!map_meta || !map_meta->IsOpen()) { if (!map_meta || !map_meta->IsOpen()) {
parse_ok_ = false; parse_ok_ = false;

View File

@ -2641,6 +2641,9 @@ long long Room::GetGasInactiveTime()
if (IsNewerMap()) { if (IsNewerMap()) {
inactive_time = 10; inactive_time = 10;
} }
if (IsNewBieBattle()) {
inactive_time = 10;
}
return inactive_time; return inactive_time;
} }