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< EnchStoreItemEnchStoreList
 
typedef std::unordered_map< uint32, EnchStoreListEnchantmentStore
 

Functions

void LoadRandomEnchantmentsTable ()
 
uint32 GetItemEnchantMod (int32 entry)
 
int32 GenerateItemRandomPropertyId (uint32 item_id)
 
uint32 GenerateEnchSuffixFactor (uint32 item_id)
 

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()

uint32 GenerateEnchSuffixFactor ( uint32  item_id)

Definition at line 168 of file ItemEnchantmentMgr.cpp.

+ Here is the caller graph for this function:

◆ GenerateItemRandomPropertyId()

int32 GenerateItemRandomPropertyId ( uint32  item_id)

Definition at line 122 of file ItemEnchantmentMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetItemEnchantMod()

uint32 GetItemEnchantMod ( int32  entry)

Definition at line 81 of file ItemEnchantmentMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadRandomEnchantmentsTable()

void LoadRandomEnchantmentsTable ( )

Definition at line 48 of file ItemEnchantmentMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ RandomItemEnch

EnchantmentStore RandomItemEnch
static

Definition at line 46 of file ItemEnchantmentMgr.cpp.