This commit is contained in:
aozhiwei 2023-05-30 19:41:17 +08:00
parent 79298794b4
commit dffc002984

View File

@ -3301,7 +3301,25 @@ void Room::ForwardGasRing(int n)
if (boss_tuple && !IsGameOver()) { if (boss_tuple && !IsGameOver()) {
const mt::Hero* hero_meta = mt::Hero::GetById(std::get<2>(*boss_tuple)); const mt::Hero* hero_meta = mt::Hero::GetById(std::get<2>(*boss_tuple));
if (hero_meta) { if (hero_meta) {
int hero_uniid = AllocUniid(); int boss_uniid = AllocUniid();
NotifyNewsTicker
(2,
{
a8::XValue(boss_uniid).GetString(),
a8::XValue(hero_meta->id()).GetString(),
a8::XValue(std::get<0>(*boss_tuple).x).GetString(),
a8::XValue(std::get<0>(*boss_tuple).y).GetString(),
a8::XValue(std::get<0>(*boss_tuple).z).GetString(),
a8::XValue(std::get<1>(*boss_tuple)).GetString(),
});
xtimer.SetTimeoutEx
(SERVER_FRAME_RATE * std::get<1>(*boss_tuple),
[this, boss_tuple] (int event, const a8::Args* args)
{
if (a8::TIMER_EXEC_EVENT == event) {
}
},
&xtimer_attacher_);
} }
} }
} }