Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ItemEnchantmentMgr.cpp File Reference
#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>
Include dependency graph for ItemEnchantmentMgr.cpp:

Go to the source code of this file.

Classes

struct  EnchStoreItem

Typedefs

typedef UNORDERED_MAP< uint32, EnchStoreListEnchantmentStore
typedef std::vector< EnchStoreItemEnchStoreList

Functions

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

Variables

static EnchantmentStore RandomItemEnch

Typedef Documentation

◆ EnchantmentStore

◆ EnchStoreList

typedef std::vector<EnchStoreItem> EnchStoreList

Definition at line 29 of file ItemEnchantmentMgr.cpp.

Function Documentation

◆ GenerateEnchSuffixFactor()

◆ GetItemEnchantMod()

uint32 GetItemEnchantMod ( int32 entry)

Definition at line 67 of file ItemEnchantmentMgr.cpp.

References rand_chance(), RandomItemEnch, and SF_LOG_ERROR.

Referenced by Item::GenerateItemRandomPropertyId().

◆ LoadRandomEnchantmentsTable()

Variable Documentation

◆ RandomItemEnch

EnchantmentStore RandomItemEnch
static

Definition at line 32 of file ItemEnchantmentMgr.cpp.

Referenced by GetItemEnchantMod(), and LoadRandomEnchantmentsTable().