This commit is contained in:
aozhiwei 2023-03-20 16:16:38 +08:00
parent 810d59de53
commit 6e5218372b
3 changed files with 15 additions and 1 deletions

View File

@ -104,6 +104,11 @@ void CallFuncBuff::Activate()
ProcLightCircle(); ProcLightCircle();
} }
break; break;
case BuffCallFunc_e::kCreateLoot:
{
ProcCreateLoot();
}
break;
default: default:
{ {
} }
@ -560,3 +565,8 @@ void CallFuncBuff::ProcLightCircle()
context->keep_buff_uniid = owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta); context->keep_buff_uniid = owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta);
} }
} }
void CallFuncBuff::ProcCreateLoot()
{
}

View File

@ -16,7 +16,8 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int,
kAddHp = 11, kAddHp = 11,
kFlashMoveToPos = 12, kFlashMoveToPos = 12,
kLightCircle = 13, kLightCircle = 13,
kDmgAddition = 14 kDmgAddition = 14,
kCreateLoot = 15
); );
@ -37,6 +38,7 @@ class CallFuncBuff : public Buff
void ProcAddHp(); void ProcAddHp();
void ProcFlashMoveToPos(); void ProcFlashMoveToPos();
void ProcLightCircle(); void ProcLightCircle();
void ProcCreateLoot();
float hold_param2_ = 0.0; float hold_param2_ = 0.0;
}; };

View File

@ -24,6 +24,8 @@ class Loot : public RoomEntity
Position born_pos; Position born_pos;
bool show_anim = false; bool show_anim = false;
long long create_frame_no = 0; long long create_frame_no = 0;
int pickup_flag = 0;
CreatureWeakPtr master;
virtual ~Loot() override; virtual ~Loot() override;
virtual void Initialize() override; virtual void Initialize() override;