1
This commit is contained in:
commit
60e1b43f34
@ -24,7 +24,7 @@ void Incubator::Init()
|
||||
if (room->IsPveRoom()) {
|
||||
room->pve_data.max_wave = room->pve_mode_meta->mode_time.size();
|
||||
int wave = 0;
|
||||
int total_time = 0;
|
||||
int total_time = room->GetGasInactiveTime() * 1000;
|
||||
SpawnWaveMon(0);
|
||||
for (int time : room->pve_mode_meta->mode_time) {
|
||||
total_time += time;
|
||||
|
@ -1255,7 +1255,8 @@ void Room::UpdateGasInactive()
|
||||
|
||||
void Room::UpdateGasInactivePvp()
|
||||
{
|
||||
if (GetFrameNo() - gas_data_.gas_start_frameno >= GetGasInactiveTime() * SERVER_FRAME_RATE) {
|
||||
if (GetFrameNo() - gas_data_.gas_start_frameno >=
|
||||
GetGasInactiveTime() * SERVER_FRAME_RATE) {
|
||||
long long begin_tick = a8::XGetTickCount();
|
||||
gas_data_.gas_mode = GasJump;
|
||||
gas_data_.gas_start_frameno = GetFrameNo();
|
||||
@ -1315,6 +1316,8 @@ void Room::UpdateGasInactivePvp()
|
||||
|
||||
void Room::UpdateGasInactivePve()
|
||||
{
|
||||
if (GetFrameNo() - gas_data_.gas_start_frameno >=
|
||||
GetGasInactiveTime() * SERVER_FRAME_RATE) {
|
||||
{
|
||||
auto first_safearea = pve_mode_meta->area[0];
|
||||
gas_data_.gas_mode = GasWaiting;
|
||||
@ -1335,6 +1338,7 @@ void Room::UpdateGasInactivePve()
|
||||
OnBattleStart();
|
||||
NotifyGameStart();
|
||||
InitAndroidAI();
|
||||
}
|
||||
}
|
||||
|
||||
void Room::UpdateGasWaiting()
|
||||
@ -2434,19 +2438,11 @@ long long Room::GetGasInactiveTime()
|
||||
return App::Instance()->debug_params.find(1) != App::Instance()->debug_params.end() ?
|
||||
App::Instance()->debug_params[1] : 10;
|
||||
#endif
|
||||
{
|
||||
if (room_type_ == RT_NewBrid) {
|
||||
if (creator_game_times_ <= 0) {
|
||||
return MetaMgr::Instance()->newbie_gas_inactive_time;
|
||||
} else {
|
||||
return MetaMgr::Instance()->common_gas_inactive_time;
|
||||
}
|
||||
} else if (room_type_ == RT_MidBrid) {
|
||||
return MetaMgr::Instance()->midbrid_gas_inactive_time;
|
||||
if (IsPveRoom()) {
|
||||
return 10;
|
||||
} else {
|
||||
return MetaMgr::Instance()->gas_inactive_time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Room::EnableHuman(Human* target)
|
||||
|
@ -79,8 +79,8 @@ void Skill::FillMFSkill(cs::MFSkill* skill_pb)
|
||||
minor_type_,
|
||||
minor_left_time,
|
||||
minor_cd_time_
|
||||
#endif
|
||||
});
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user