AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ItemEnchantmentMgr.h"
#include "DBCStores.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Util.h"
#include <cmath>
#include <functional>
#include <vector>
Go to the source code of this file.
Classes | |
struct | EnchStoreItem |
Typedefs | |
typedef std::vector< EnchStoreItem > | EnchStoreList |
typedef std::unordered_map< uint32, EnchStoreList > | EnchantmentStore |
Functions | |
void | LoadRandomEnchantmentsTable () |
uint32 | GetItemEnchantMod (int32 entry) |
uint32 | GenerateEnchSuffixFactor (uint32 item_id) |
Variables | |
static EnchantmentStore | RandomItemEnch |
typedef std::unordered_map<uint32, EnchStoreList> EnchantmentStore |
typedef std::vector<EnchStoreItem> EnchStoreList |
References RandomPropertiesPointsEntry::EpicPropertiesPoints, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_AMMO, INVTYPE_BAG, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_NON_EQUIP, INVTYPE_QUIVER, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_EPIC, ITEM_QUALITY_LEGENDARY, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, ItemTemplate::ItemLevel, ItemTemplate::Quality, ItemTemplate::RandomSuffix, RandomPropertiesPointsEntry::RarePropertiesPoints, sObjectMgr, sRandomPropertiesPointsStore, and RandomPropertiesPointsEntry::UncommonPropertiesPoints.
Referenced by LootItem::LootItem(), and Item::UpdateItemSuffixFactor().
References irand(), LOG_ERROR, rand_chance(), and RandomItemEnch.
Referenced by Item::GenerateItemRandomPropertyId(), and ObjectMgr::LoadItemTemplates().
void LoadRandomEnchantmentsTable | ( | ) |
References Field::Get(), getMSTime(), GetMSTimeDiffToNow(), LOG_INFO, LOG_WARN, RandomItemEnch, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadItemEnchantementsCommand(), and World::SetInitialWorldSettings().
|
static |
Referenced by GetItemEnchantMod(), and LoadRandomEnchantmentsTable().