1
This commit is contained in:
parent
01ce1e4fe1
commit
ee6df70741
@ -288,7 +288,7 @@ void Hero::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
||||
&xtimer_attacher.timer_list_);
|
||||
if (room->IsPveRoom()) {
|
||||
--room->pve_data.mon_num;
|
||||
--room->pve_data.killed_num;
|
||||
++room->pve_data.killed_num;
|
||||
room->NotifyUiUpdate();
|
||||
}
|
||||
GetTrigger()->Die();
|
||||
|
@ -256,7 +256,7 @@ void Incubator::SpawnWaveMon(int wave)
|
||||
abort();
|
||||
}
|
||||
if (room->pve_data.refreshed_mon > 0 &&
|
||||
room->pve_data.mon_num <= 0) {
|
||||
room->pve_data.mon_num > 0) {
|
||||
timeout_ = true;
|
||||
return;
|
||||
}
|
||||
|
@ -1187,8 +1187,13 @@ void Room::UpdateGas()
|
||||
if (gas_data_.gas_mode != GasInactive) {
|
||||
if (IsPveRoom()) {
|
||||
if (!IsGameOver() &&
|
||||
pve_data.refreshed_mon > 0 &&
|
||||
pve_data.killed_num >= pve_data.refreshed_mon) {
|
||||
(
|
||||
incubator_->IsTimeOut() ||
|
||||
(
|
||||
pve_data.refreshed_mon > 0 &&
|
||||
pve_data.killed_num >= pve_data.refreshed_mon)
|
||||
)
|
||||
) {
|
||||
game_over_ = true;
|
||||
game_over_frameno_ = GetFrameNo();
|
||||
OnGameOver();
|
||||
|
Loading…
x
Reference in New Issue
Block a user