This commit is contained in:
aozhiwei 2022-09-28 17:18:43 +08:00
parent 245277a7be
commit d09da157b0

View File

@ -91,18 +91,22 @@ void PveData::OnBeKill(Hero* hero)
}); });
} }
if (room->IsDestoryRoom()) { if (room->IsDestoryRoom()) {
if (GetWave() + 1 < max_wave) {
if (GetWave() < room->pve_mode_meta->next_door.size()) { if (GetWave() < room->pve_mode_meta->next_door.size()) {
a8::Vec2 point = room->pve_mode_meta->next_door[room->pve_data.GetWave()]; a8::Vec2 point = room->pve_mode_meta->next_door[room->pve_data.GetWave()];
#if 0 #if 0
room->CreateObstacle(PVE_DOOR_THING_ID, point.x, point.y); room->CreateObstacle(PVE_DOOR_THING_ID, point.x, point.y);
#endif #endif
FlyDoor(room, point, 50); FlyDoor(room, point, 50);
} }
}
} else { } else {
if (GetWave() + 1 < max_wave) {
room->GetIncubator()->NextWave(); room->GetIncubator()->NextWave();
} }
} }
} }
}
} }
void PveData::FlyDoor(Room* room, a8::Vec2& point, int radius) void PveData::FlyDoor(Room* room, a8::Vec2& point, int radius)