From 570a61dc5a2957c0545a678ab0dbc49262e67f59 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 23 Mar 2023 10:22:17 +0800 Subject: [PATCH] 1 --- server/gameserver/buff/summon_loot.cc | 3 +++ server/gameserver/constant.h | 1 + server/gameserver/loot.h | 3 +++ 3 files changed, 7 insertions(+) diff --git a/server/gameserver/buff/summon_loot.cc b/server/gameserver/buff/summon_loot.cc index ae8126bd..13796330 100644 --- a/server/gameserver/buff/summon_loot.cc +++ b/server/gameserver/buff/summon_loot.cc @@ -31,6 +31,9 @@ void SummonLootBuff::Activate() if (e && e->IsEntityType(ET_Loot)) { Loot* loot = (Loot*)e; loot->pickup_flag = flag; + loot->buff_meta = meta; + loot->skill_meta = skill_meta; + loot->buff_vars = buff_vars; loot->master = owner->GetWeakPtrRef(); } } diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index 7a6bf4e1..c0df1442 100644 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -195,6 +195,7 @@ enum EquipType_e EQUIP_TYPE_SINGAL_EMITTER = 13, EQUIP_TYPE_GIFT_PACKAGE = 14, EQUIP_TYPE_GEMSTONE = 15, + EQUIP_TYPE_LOVE = 16, EQUIP_TYPE_End }; diff --git a/server/gameserver/loot.h b/server/gameserver/loot.h index c8896a8a..5ea62e27 100644 --- a/server/gameserver/loot.h +++ b/server/gameserver/loot.h @@ -26,6 +26,9 @@ class Loot : public RoomEntity long long create_frame_no = 0; int pickup_flag = 0; CreatureWeakPtr master; + const mt::Buff* buff_meta = nullptr; + const mt::Skill* skill_meta = nullptr; + std::shared_ptr> buff_vars; virtual ~Loot() override; virtual void Initialize() override;