|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include "DatabaseEnv.h"#include "DBCStores.h"#include "ItemEnchantmentMgr.h"#include "Log.h"#include "ObjectMgr.h"#include "Util.h"#include <functional>#include <list>#include <stdlib.h>#include <vector>Go to the source code of this file.
Classes | |
| struct | EnchStoreItem |
Typedefs | |
| typedef UNORDERED_MAP< uint32, EnchStoreList > | EnchantmentStore |
| typedef std::vector< EnchStoreItem > | EnchStoreList |
Functions | |
| uint32 | GenerateEnchSuffixFactor (uint32 item_id) |
| uint32 | GetItemEnchantMod (int32 entry) |
| void | LoadRandomEnchantmentsTable () |
Variables | |
| static EnchantmentStore | RandomItemEnch |
| typedef UNORDERED_MAP<uint32, EnchStoreList> EnchantmentStore |
Definition at line 30 of file ItemEnchantmentMgr.cpp.
| typedef std::vector<EnchStoreItem> EnchStoreList |
Definition at line 29 of file ItemEnchantmentMgr.cpp.
Definition at line 108 of file ItemEnchantmentMgr.cpp.
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().
Definition at line 67 of file ItemEnchantmentMgr.cpp.
References rand_chance(), RandomItemEnch, and SF_LOG_ERROR.
Referenced by Item::GenerateItemRandomPropertyId().
| void LoadRandomEnchantmentsTable | ( | ) |
Definition at line 34 of file ItemEnchantmentMgr.cpp.
References Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), RandomItemEnch, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadItemEnchantementsCommand(), and World::SetInitialWorldSettings().
|
static |
Definition at line 32 of file ItemEnchantmentMgr.cpp.
Referenced by GetItemEnchantMod(), and LoadRandomEnchantmentsTable().