1
This commit is contained in:
parent
79298794b4
commit
dffc002984
@ -3301,7 +3301,25 @@ void Room::ForwardGasRing(int n)
|
||||
if (boss_tuple && !IsGameOver()) {
|
||||
const mt::Hero* hero_meta = mt::Hero::GetById(std::get<2>(*boss_tuple));
|
||||
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_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user