AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "LootMgr.h"
Public Member Functions | |
LootStoreItem (uint32 _itemid, int32 _reference, float _chance, bool _needs_quest, uint16 _lootmode, uint8 _groupid, int32 _mincount, uint8 _maxcount) | |
bool | Roll (bool rate, Player const *player, Loot &loot, LootStore const &store) const |
bool | IsValid (LootStore const &store, uint32 entry) const |
Public Attributes | |
uint32 | itemid |
int32 | reference |
float | chance |
bool | needs_quest: 1 |
uint16 | lootmode |
uint8 | groupid: 7 |
uint8 | mincount |
uint8 | maxcount |
ConditionList | conditions |
|
inline |
References chance, LootStore::GetName(), groupid, itemid, LOG_ERROR, maxcount, mincount, needs_quest, reference, and sObjectMgr.
Referenced by LootStore::LoadLootTable().
bool LootStoreItem::Roll | ( | bool | rate, |
Player const * | player, | ||
Loot & | loot, | ||
LootStore const & | store | ||
) | const |
References chance, and sScriptMgr.
Referenced by LootTemplate::Process().
float LootStoreItem::chance |
Referenced by LootTemplate::LootGroup::AddEntry(), IsValid(), Roll(), and LootTemplate::LootGroup::Roll().
ConditionList LootStoreItem::conditions |
Referenced by Loot::AddItem(), LootTemplate::CopyConditions(), and LootItem::LootItem().
uint8 LootStoreItem::groupid |
Referenced by LootTemplate::AddEntry(), LootTemplate::LootGroup::HasQuestDrop(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), IsValid(), LootItem::LootItem(), LootGroupInvalidSelector::operator()(), and LootTemplate::Process().
uint32 LootStoreItem::itemid |
Referenced by Loot::AddItem(), LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LootTemplate::CopyConditions(), LootTemplate::HasQuestDropForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), IsValid(), LootItem::LootItem(), and LootGroupInvalidSelector::operator()().
uint16 LootStoreItem::lootmode |
Referenced by LootGroupInvalidSelector::operator()(), and LootTemplate::Process().
uint8 LootStoreItem::maxcount |
Referenced by Loot::AddItem(), IsValid(), and LootTemplate::Process().
uint8 LootStoreItem::mincount |
Referenced by Loot::AddItem(), and IsValid().
bool LootStoreItem::needs_quest |
int32 LootStoreItem::reference |
Referenced by LootTemplate::AddEntry(), LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LootTemplate::CopyConditions(), LootTemplate::LootGroup::HasQuestDrop(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), IsValid(), LootGroupInvalidSelector::operator()(), and LootTemplate::Process().