1
This commit is contained in:
parent
2b9e89a002
commit
f4f0120da6
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user