![]() |
TrinityCore
|
#include <LootMgr.h>
Public Member Functions | |
| LootStoreItem (uint32 _itemid, uint32 _reference, float _chance, bool _needs_quest, uint16 _lootmode, uint8 _groupid, int32 _mincount, uint8 _maxcount) | |
| bool | Roll (bool rate) const |
| bool | IsValid (LootStore const &store, uint32 entry) const |
Public Attributes | |
| uint32 | itemid |
| uint32 | reference |
| float | chance |
| uint16 | lootmode |
| bool | needs_quest |
| uint8 | groupid |
| uint8 | mincount |
| uint8 | maxcount |
| ConditionContainer | conditions |
Definition at line 297 of file LootMgr.cpp.
References chance, LootStore::GetName(), groupid, itemid, maxcount, mincount, needs_quest, reference, sObjectMgr, and TC_LOG_ERROR.
Referenced by LootStore::LoadLootTable().
| bool LootStoreItem::Roll | ( | bool | rate | ) | const |
Definition at line 281 of file LootMgr.cpp.
References chance, ItemTemplate::GetQuality(), itemid, qualityToRate, RATE_DROP_ITEM_REFERENCED, reference, roll_chance_f(), sObjectMgr, and sWorld.
Referenced by LootTemplate::Process().
| float LootStoreItem::chance |
Definition at line 38 of file LootMgr.h.
Referenced by LootTemplate::LootGroup::AddEntry(), IsValid(), Roll(), and LootTemplate::LootGroup::Roll().
| ConditionContainer LootStoreItem::conditions |
Definition at line 44 of file LootMgr.h.
Referenced by Loot::AddItem(), LootTemplate::LootGroup::CopyConditions(), LootTemplate::CopyConditions(), and LootItem::LootItem().
| uint8 LootStoreItem::groupid |
Definition at line 41 of file LootMgr.h.
Referenced by LootTemplate::AddEntry(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), IsValid(), and LootTemplate::Process().
| uint32 LootStoreItem::itemid |
Definition at line 36 of file LootMgr.h.
Referenced by Loot::AddItem(), LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LootTemplate::CopyConditions(), LootTemplate::HasQuestDropForPlayer(), IsValid(), LootItem::LootItem(), LootGroupInvalidSelector::operator()(), and Roll().
| uint16 LootStoreItem::lootmode |
Definition at line 39 of file LootMgr.h.
Referenced by LootGroupInvalidSelector::operator()(), and LootTemplate::Process().
| uint8 LootStoreItem::maxcount |
Definition at line 43 of file LootMgr.h.
Referenced by Loot::AddItem(), IsValid(), and LootTemplate::Process().
| uint8 LootStoreItem::mincount |
Definition at line 42 of file LootMgr.h.
Referenced by Loot::AddItem(), and IsValid().
| bool LootStoreItem::needs_quest |
Definition at line 40 of file LootMgr.h.
Referenced by Loot::AddItem(), LootTemplate::HasQuestDrop(), IsValid(), and LootItem::LootItem().
| uint32 LootStoreItem::reference |
Definition at line 37 of file LootMgr.h.
Referenced by LootTemplate::AddEntry(), LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), IsValid(), LootTemplate::Process(), and Roll().