1
This commit is contained in:
parent
0afe5814ea
commit
9d5555e9dd
@ -17,7 +17,7 @@ void SummonLootBuff::Activate()
|
|||||||
float y = meta->GetBuffParam3(this);
|
float y = meta->GetBuffParam3(this);
|
||||||
float z = meta->GetBuffParam4(this);
|
float z = meta->GetBuffParam4(this);
|
||||||
int flag = meta->_int_buff_param5;
|
int flag = meta->_int_buff_param5;
|
||||||
float show_time = meta->GetBuffParam5(this);
|
float show_time = meta->GetBuffParam6(this);
|
||||||
const mt::Equip* equip_meta = mt::Equip::GetById(equip_id);
|
const mt::Equip* equip_meta = mt::Equip::GetById(equip_id);
|
||||||
if (equip_meta) {
|
if (equip_meta) {
|
||||||
int loot_uniid = owner->room->CreateLoot
|
int loot_uniid = owner->room->CreateLoot
|
||||||
@ -42,6 +42,7 @@ void SummonLootBuff::Activate()
|
|||||||
[loot] (int event, const a8::Args* args) mutable
|
[loot] (int event, const a8::Args* args) mutable
|
||||||
{
|
{
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
|
loot->pickuped = true;
|
||||||
loot->room->RemoveObjectLater(loot);
|
loot->room->RemoveObjectLater(loot);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user