This commit is contained in:
aozhiwei 2022-08-22 17:27:07 +08:00
parent 445470a06f
commit 84cbfe059b
2 changed files with 7 additions and 0 deletions

View File

@ -286,6 +286,9 @@ 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;
}
GetTrigger()->Die();
}

View File

@ -20,6 +20,8 @@ void Incubator::Init()
},
&xtimer_attacher_.timer_list_);
if (room->IsPveRoom()) {
room->pve_data.wave = 1;
room->pve_data.max_wave = room->pve_mode_meta->mode_time.size();
int wave = 0;
for (int time : room->pve_mode_meta->mode_time) {
room->xtimer.AddDeadLineTimerAndAttach
@ -268,6 +270,8 @@ void Incubator::SpawnWaveMon(int wave)
if (!hero) {
A8_ABORT();
}
++room->pve_data.mon_num;
}
}
++room->pve_data.wave;
}