1
This commit is contained in:
parent
445470a06f
commit
84cbfe059b
@ -286,6 +286,9 @@ void Hero::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
&xtimer_attacher.timer_list_);
|
&xtimer_attacher.timer_list_);
|
||||||
|
if (room->IsPveRoom()) {
|
||||||
|
--room->pve_data.mon_num;
|
||||||
|
}
|
||||||
GetTrigger()->Die();
|
GetTrigger()->Die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ void Incubator::Init()
|
|||||||
},
|
},
|
||||||
&xtimer_attacher_.timer_list_);
|
&xtimer_attacher_.timer_list_);
|
||||||
if (room->IsPveRoom()) {
|
if (room->IsPveRoom()) {
|
||||||
|
room->pve_data.wave = 1;
|
||||||
|
room->pve_data.max_wave = room->pve_mode_meta->mode_time.size();
|
||||||
int wave = 0;
|
int wave = 0;
|
||||||
for (int time : room->pve_mode_meta->mode_time) {
|
for (int time : room->pve_mode_meta->mode_time) {
|
||||||
room->xtimer.AddDeadLineTimerAndAttach
|
room->xtimer.AddDeadLineTimerAndAttach
|
||||||
@ -268,6 +270,8 @@ void Incubator::SpawnWaveMon(int wave)
|
|||||||
if (!hero) {
|
if (!hero) {
|
||||||
A8_ABORT();
|
A8_ABORT();
|
||||||
}
|
}
|
||||||
|
++room->pve_data.mon_num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
++room->pve_data.wave;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user