LootTemplate::LootGroup::LootGroup |
( |
| ) |
|
|
inline |
LootTemplate::LootGroup::~LootGroup |
( |
| ) |
|
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
float chance
Definition: LootMgr.h:138
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
Definition: LootMgr.h:134
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
uint32 itemid
Definition: LootMgr.h:136
LootTemplate const * GetLootFor(uint32 loot_id) const
Definition: LootMgr.cpp:227
void ReportNonExistingId(uint32 lootId) const
Definition: LootMgr.cpp:270
uint32 reference
Definition: LootMgr.h:137
LootStore LootTemplates_Reference("reference_loot_template","reference id", false)
void LootTemplate::LootGroup::CollectLootIds |
( |
LootIdSet & |
set | ) |
const |
1166 (*i)->conditions.clear();
1169 (*i)->conditions.clear();
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
bool LootTemplate::LootGroup::HasQuestDrop |
( |
| ) |
const |
1139 if ((*i)->needs_quest)
1143 if ((*i)->needs_quest)
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
bool LootTemplate::LootGroup::HasQuestDropForPlayer |
( |
Player const * |
player | ) |
const |
1153 if (player->HasQuestForItem((*i)->itemid))
1157 if (player->HasQuestForItem((*i)->itemid))
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
void LootTemplate::LootGroup::Process |
( |
Loot & |
loot, |
|
|
uint16 |
lootMode |
|
) |
| const |
Definition: LootMgr.h:134
LootStoreItem const * Roll(Loot &loot, uint16 lootMode) const
Definition: LootMgr.cpp:1106
void AddItem(LootStoreItem const &item)
Definition: LootMgr.cpp:416
float LootTemplate::LootGroup::RawTotalChance |
( |
| ) |
const |
1185 if (!(*i)->needs_quest)
1186 result += (*i)->chance;
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
1111 if (!possibleLoot.empty())
1115 for (LootStoreItemList::const_iterator itr = possibleLoot.begin(); itr != possibleLoot.end(); ++itr)
1118 if (item->
chance >= 100.0f)
1129 if (!possibleLoot.empty())
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
C::value_type const & SelectRandomContainerElement(C const &container)
Definition: Containers.h:68
Definition: LootMgr.h:134
std::list< LootStoreItem * > LootStoreItemList
Definition: LootMgr.h:208
Definition: LootMgr.cpp:57
LootStoreItemList ExplicitlyChanced
Definition: LootMgr.cpp:101
float chance
Definition: LootMgr.h:138
arena_t NULL
Definition: jemalloc_internal.h:624
double rand_chance()
Definition: Random.cpp:74
float LootTemplate::LootGroup::TotalChance |
( |
| ) |
const |
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
float RawTotalChance() const
Definition: LootMgr.cpp:1180
- Todo:
- replace with 100% when DBs will be ready
1205 if (chance > 101.0f)
1206 TC_LOG_ERROR(
"sql.sql",
"Table '%s' entry %u group %d has total chance > 100%% (%f)", lootstore.GetName(), id, group_id, chance);
1209 TC_LOG_ERROR(
"sql.sql",
"Table '%s' entry %u group %d has items with chance=0%% but group total chance >= 100%% (%f)", lootstore.GetName(), id, group_id, chance);
LootStoreItemList EqualChanced
Definition: LootMgr.cpp:102
float RawTotalChance() const
Definition: LootMgr.cpp:1180
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
The documentation for this class was generated from the following file: