This commit is contained in:
aozhiwei 2022-09-27 18:40:28 +08:00
parent c73fcc9111
commit 54c75fc37a

View File

@ -76,6 +76,17 @@ void PveData::OnBeKill(Hero* hero)
if (refreshed_mon > 0) {
if (killed_num >= refreshed_mon) {
if (wave < room->pve_mode_meta->round_score.size()) {
int win_score = room->pve_mode_meta->round_score[wave];
room->TraverseHumanList
(
a8::XParams(),
[this, win_score] (Human* hum, a8::XParams& param)
{
hum->WinPveScore(win_score);
return true;
});
}
if (room->IsDestoryRoom()) {
if (wave < room->pve_mode_meta->next_door.size()) {
a8::Vec2 point = room->pve_mode_meta->next_door[room->pve_data.wave];
@ -91,7 +102,6 @@ void PveData::OnBeKill(Hero* hero)
}
}
void PveData::FlyDoor(Room* room, a8::Vec2& point, int radius)
{
#ifdef DEBUG