![]() |
TrinityCore
|
#include <LootMgr.h>
Public Types | |
| enum class | Type : int8 { Item = 0 , Reference = 1 , Currency = 2 , TrackingQuest = 3 } |
Public Member Functions | |
| LootStoreItem (uint32 _itemid, Type _type, float _chance, bool _needs_quest, uint16 _lootmode, uint8 _groupid, uint8 _mincount, uint8 _maxcount) | |
| bool | Roll (bool rate) const |
| bool | IsValid (LootStore const &store, uint32 entry) const |
Public Attributes | |
| uint32 | itemid |
| Type | type |
| float | chance |
| uint16 | lootmode |
| bool | needs_quest |
| uint8 | groupid |
| uint8 | mincount |
| uint8 | maxcount |
| ConditionsReference | conditions |
|
strong |
Definition at line 285 of file LootMgr.cpp.
References chance, Currency, LootStore::GetName(), groupid, Quest::HasFlag(), Item, itemid, maxcount, mincount, needs_quest, QUEST_FLAGS_TRACKING_EVENT, Reference, sCurrencyTypesStore, sObjectMgr, TC_LOG_ERROR, TrackingQuest, and type.
Referenced by LootStore::LoadLootTable().
| bool LootStoreItem::Roll | ( | bool | rate | ) | const |
Definition at line 250 of file LootMgr.cpp.
References chance, Currency, ItemTemplate::GetQuality(), Item, itemid, MAX_RATES, CurrencyTypesEntry::Quality, QualityToRate, RATE_DROP_ITEM_REFERENCED, Reference, roll_chance(), sCurrencyTypesStore, sObjectMgr, sWorld, TrackingQuest, and type.
| float LootStoreItem::chance |
Definition at line 50 of file LootMgr.h.
Referenced by LootTemplate::LootGroup::AddEntry(), IsValid(), and Roll().
| ConditionsReference LootStoreItem::conditions |
Definition at line 56 of file LootMgr.h.
Referenced by LootItem::AllowedForPlayer().
| uint32 LootStoreItem::itemid |
Definition at line 48 of file LootMgr.h.
Referenced by Loot::AddItem(), LootItem::AllowedForPlayer(), IsValid(), and Roll().
| uint16 LootStoreItem::lootmode |
Definition at line 51 of file LootMgr.h.
Referenced by LootGroupInvalidSelector::operator()().
| uint8 LootStoreItem::maxcount |
Definition at line 55 of file LootMgr.h.
Referenced by Loot::AddItem(), and IsValid().
| uint8 LootStoreItem::mincount |
Definition at line 54 of file LootMgr.h.
Referenced by Loot::AddItem(), and IsValid().
| bool LootStoreItem::needs_quest |
Definition at line 52 of file LootMgr.h.
Referenced by LootItem::AllowedForPlayer(), LootTemplate::LootGroup::HasQuestDrop(), IsValid(), and LootItem::LootItem().
| Type LootStoreItem::type |
Definition at line 49 of file LootMgr.h.
Referenced by Loot::AddItem(), LootItem::AllowedForPlayer(), IsValid(), LootItem::LootItem(), and Roll().