TrinityCore
Loading...
Searching...
No Matches
ItemEnchantmentMgr.cpp File Reference
#include "ItemEnchantmentMgr.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Util.h"
#include "DBCStores.h"
#include "Random.h"
#include "Timer.h"
#include <list>
#include <vector>
#include <stdlib.h>
+ Include dependency graph for ItemEnchantmentMgr.cpp:

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)
 
int32 GenerateItemRandomPropertyId (uint32 item_id)
 
uint32 GenerateEnchSuffixFactor (uint32 item_id)
 
uint32 GetRandomPropertyPoints (uint32 itemLevel, uint32 quality, uint32 inventoryType)
 

Variables

static EnchantmentStore RandomItemEnch
 

Typedef Documentation

◆ EnchantmentStore

typedef std::unordered_map<uint32, EnchStoreList> EnchantmentStore

Definition at line 44 of file ItemEnchantmentMgr.cpp.

◆ EnchStoreList

typedef std::vector<EnchStoreItem> EnchStoreList

Definition at line 43 of file ItemEnchantmentMgr.cpp.

Function Documentation

◆ GenerateEnchSuffixFactor()

◆ GenerateItemRandomPropertyId()

◆ GetItemEnchantMod()

uint32 GetItemEnchantMod ( int32  entry)

◆ GetRandomPropertyPoints()

◆ LoadRandomEnchantmentsTable()

Variable Documentation

◆ RandomItemEnch

EnchantmentStore RandomItemEnch
static

Definition at line 46 of file ItemEnchantmentMgr.cpp.

Referenced by GetItemEnchantMod(), and LoadRandomEnchantmentsTable().