1297 if (groupId >
Groups.size())
1300 if (!
Groups[groupId - 1])
1303 Groups[groupId - 1]->Process(loot, lootMode);
1308 for (LootStoreItemList::const_iterator i =
Entries.begin(); i !=
Entries.end(); ++i)
1314 if (!item->
Roll(rate))
1324 for (
uint32 loop = 0; loop < maxcount; ++loop)
1332 for (LootGroups::const_iterator i =
Groups.begin(); i !=
Groups.end(); ++i)
1333 if (LootGroup* group = *i)
1334 group->Process(loot, lootMode);
bool Roll(bool rate) const
Definition: LootMgr.cpp:286
uint8 maxcount
Definition: LootMgr.h:143
Definition: LootMgr.h:134
uint16 lootmode
Definition: LootMgr.h:139
LootGroups Groups
Definition: LootMgr.h:279
void Process(Loot &loot, bool rate, uint16 lootMode, uint8 groupId=0) const
Definition: LootMgr.cpp:1293
Entries
Definition: boss_slabhide.cpp:48
uint8 groupid
Definition: LootMgr.h:141
#define sWorld
Definition: World.h:887
LootTemplate const * GetLootFor(uint32 loot_id) const
Definition: LootMgr.cpp:227
uint32_t uint32
Definition: Define.h:150
void AddItem(LootStoreItem const &item)
Definition: LootMgr.cpp:416
Definition: LootMgr.h:250
uint32_t uint32
Definition: g3dmath.h:168
uint32 reference
Definition: LootMgr.h:137
LootStore LootTemplates_Reference("reference_loot_template","reference id", false)