64 {
66 return true;
67
69 {
71 if (!_proto)
72 return true;
73
74 uint8 foundDuplicates = 0;
75 for (std::vector<LootItem>::const_iterator itr =
_loot.
items.begin(); itr !=
_loot.
items.end(); ++itr)
76 if (itr->itemid == item->
itemid && itr->groupid == item->
groupid)
77 {
78 ++foundDuplicates;
80 return true;
82 return true;
83 }
84 }
85
86 return false;
87 }
std::uint8_t uint8
Definition: Define.h:109
#define sObjectMgr
Definition: ObjectMgr.h:1635
Definition: ItemTemplate.h:619
uint32 InventoryType
Definition: ItemTemplate.h:632
uint32 ItemId
Definition: ItemTemplate.h:620
int32 reference
Definition: LootMgr.h:130
uint32 itemid
Definition: LootMgr.h:129
uint16 lootmode
Definition: LootMgr.h:133
uint8 groupid
Definition: LootMgr.h:134
std::vector< LootItem > items
Definition: LootMgr.h:320