1
This commit is contained in:
parent
c73fcc9111
commit
54c75fc37a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user