From 6e5218372bea52c5f3487cad7e437af2361d9af3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 20 Mar 2023 16:16:38 +0800 Subject: [PATCH] 1 --- server/gameserver/buff/callfunc.cc | 10 ++++++++++ server/gameserver/buff/callfunc.h | 4 +++- server/gameserver/loot.h | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/server/gameserver/buff/callfunc.cc b/server/gameserver/buff/callfunc.cc index 4cf7b9cf..9b04925a 100644 --- a/server/gameserver/buff/callfunc.cc +++ b/server/gameserver/buff/callfunc.cc @@ -104,6 +104,11 @@ void CallFuncBuff::Activate() ProcLightCircle(); } break; + case BuffCallFunc_e::kCreateLoot: + { + ProcCreateLoot(); + } + break; default: { } @@ -560,3 +565,8 @@ void CallFuncBuff::ProcLightCircle() context->keep_buff_uniid = owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta); } } + +void CallFuncBuff::ProcCreateLoot() +{ + +} diff --git a/server/gameserver/buff/callfunc.h b/server/gameserver/buff/callfunc.h index a54c5052..b7dc8c27 100644 --- a/server/gameserver/buff/callfunc.h +++ b/server/gameserver/buff/callfunc.h @@ -16,7 +16,8 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int, kAddHp = 11, kFlashMoveToPos = 12, kLightCircle = 13, - kDmgAddition = 14 + kDmgAddition = 14, + kCreateLoot = 15 ); @@ -37,6 +38,7 @@ class CallFuncBuff : public Buff void ProcAddHp(); void ProcFlashMoveToPos(); void ProcLightCircle(); + void ProcCreateLoot(); float hold_param2_ = 0.0; }; diff --git a/server/gameserver/loot.h b/server/gameserver/loot.h index 48991ad9..c8896a8a 100644 --- a/server/gameserver/loot.h +++ b/server/gameserver/loot.h @@ -24,6 +24,8 @@ class Loot : public RoomEntity Position born_pos; bool show_anim = false; long long create_frame_no = 0; + int pickup_flag = 0; + CreatureWeakPtr master; virtual ~Loot() override; virtual void Initialize() override;