|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <LootMgr.h>
Public Member Functions | |
| bool | IsValid (LootStore const &store, uint32 entry) const |
| LootStoreItem (uint32 _itemid, float _chanceOrQuestChance, uint16 _lootmode, uint8 _group, int32 _mincountOrRef, uint8 _maxcount) | |
| bool | Roll (bool rate) const |
Public Attributes | |
| float | chance |
| ConditionList | conditions |
| uint8 | group: 7 |
| uint32 | itemid |
| uint16 | lootmode |
| uint8 | maxcount: 8 |
| int32 | mincountOrRef |
| bool | needs_quest: 1 |
|
inline |
Definition at line 106 of file LootMgr.h.
References chance, group, itemid, lootmode, maxcount, mincountOrRef, and needs_quest.
Definition at line 287 of file LootMgr.cpp.
References chance, LootStore::GetName(), group, itemid, maxcount, mincountOrRef, needs_quest, SF_LOG_ERROR, and sObjectMgr.
Referenced by LootStore::LoadLootTable().
| bool LootStoreItem::Roll | ( | bool | rate | ) | const |
Definition at line 271 of file LootMgr.cpp.
References chance, itemid, mincountOrRef, ItemTemplate::Quality, qualityToRate, RATE_DROP_ITEM_REFERENCED, roll_chance_f(), sObjectMgr, and sWorld.
Referenced by LootTemplate::Process().
| float LootStoreItem::chance |
Definition at line 96 of file LootMgr.h.
Referenced by LootTemplate::LootGroup::AddEntry(), IsValid(), LootStoreItem(), Roll(), and LootTemplate::LootGroup::Roll().
| ConditionList LootStoreItem::conditions |
Definition at line 102 of file LootMgr.h.
Referenced by Loot::AddItem(), and LootTemplate::CopyConditions().
| uint8 LootStoreItem::group |
Definition at line 99 of file LootMgr.h.
Referenced by LootTemplate::AddEntry(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), IsValid(), LootStoreItem(), and LootTemplate::Process().
| uint32 LootStoreItem::itemid |
Definition at line 95 of file LootMgr.h.
Referenced by Loot::AddItem(), LootTemplate::CopyConditions(), LootTemplate::HasQuestDropForPlayer(), IsValid(), LootStoreItem(), LootGroupInvalidSelector::operator()(), and Roll().
| uint16 LootStoreItem::lootmode |
Definition at line 98 of file LootMgr.h.
Referenced by LootStoreItem(), LootGroupInvalidSelector::operator()(), and LootTemplate::Process().
| uint8 LootStoreItem::maxcount |
Definition at line 101 of file LootMgr.h.
Referenced by Loot::AddItem(), IsValid(), LootStoreItem(), and LootTemplate::Process().
| int32 LootStoreItem::mincountOrRef |
Definition at line 97 of file LootMgr.h.
Referenced by LootTemplate::AddEntry(), Loot::AddItem(), LootTemplate::CheckLootRefs(), LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), IsValid(), LootStoreItem(), LootTemplate::Process(), and Roll().
| bool LootStoreItem::needs_quest |
Definition at line 100 of file LootMgr.h.
Referenced by Loot::AddItem(), LootTemplate::HasQuestDrop(), IsValid(), and LootStoreItem().