TrinityCore
Loading...
Searching...
No Matches
Item.cpp File Reference
#include "Item.h"
#include "ArtifactPackets.h"
#include "AzeriteEmpoweredItem.h"
#include "AzeriteItem.h"
#include "Bag.h"
#include "ClientBuildInfo.h"
#include "CollectionMgr.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "DB2Stores.h"
#include "DatabaseEnv.h"
#include "GameTables.h"
#include "GameTime.h"
#include "ItemBonusMgr.h"
#include "ItemEnchantmentMgr.h"
#include "ItemPackets.h"
#include "Log.h"
#include "Loot.h"
#include "LootItemStorage.h"
#include "LootMgr.h"
#include "Map.h"
#include "MapUtils.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "RealmList.h"
#include "ScriptMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "StringConvert.h"
#include "TradeData.h"
#include "TransmogMgr.h"
#include "UpdateData.h"
#include "World.h"
#include "WorldSession.h"
#include <sstream>
+ Include dependency graph for Item.cpp:

Go to the source code of this file.

Classes

struct  ItemSetEffect
 

Functions

ItemNewItemOrBag (ItemTemplate const *proto)
 
void AddItemsSetItem (Player *player, Item const *item)
 
void RemoveItemsSetItem (Player *player, Item const *item)
 
void UpdateItemSetAuras (Player *player, bool formChange)
 
void DeleteItemSetEffects (ItemSetEffect *itemSetEffect)
 
bool ItemCanGoIntoBag (ItemTemplate const *pProto, ItemTemplate const *pBagProto)
 
static uint32 FindSpellChargesSlot (BonusData const &bonusData, ItemEffectEntry const *effect)
 
void AddItemToUpdateQueueOf (Item *item, Player *player)
 
void RemoveItemFromUpdateQueueOf (Item *item, Player *player)
 

Variables

ItemModifier const AppearanceModifierSlotBySpec [MAX_SPECIALIZATIONS]
 
ItemModifier const IllusionModifierSlotBySpec [MAX_SPECIALIZATIONS]
 
ItemModifier const SecondaryAppearanceModifierSlotBySpec [MAX_SPECIALIZATIONS]
 
int32 const ItemTransmogrificationSlots [MAX_INVTYPE]
 

Function Documentation

◆ AddItemsSetItem()

void AddItemsSetItem ( Player player,
Item const *  item 
)

Definition at line 76 of file Item.cpp.

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

◆ AddItemToUpdateQueueOf()

void AddItemToUpdateQueueOf ( Item item,
Player player 
)

Definition at line 1289 of file Item.cpp.

◆ DeleteItemSetEffects()

void DeleteItemSetEffects ( ItemSetEffect itemSetEffect)

Definition at line 245 of file Item.cpp.

+ Here is the caller graph for this function:

◆ FindSpellChargesSlot()

static uint32 FindSpellChargesSlot ( BonusData const &  bonusData,
ItemEffectEntry const *  effect 
)
static

Definition at line 602 of file Item.cpp.

+ Here is the caller graph for this function:

◆ ItemCanGoIntoBag()

bool ItemCanGoIntoBag ( ItemTemplate const *  pProto,
ItemTemplate const *  pBagProto 
)

Definition at line 250 of file Item.cpp.

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

◆ NewItemOrBag()

Item * NewItemOrBag ( ItemTemplate const *  proto)

Definition at line 55 of file Item.cpp.

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

◆ RemoveItemFromUpdateQueueOf()

void RemoveItemFromUpdateQueueOf ( Item item,
Player player 
)

Definition at line 1310 of file Item.cpp.

+ Here is the caller graph for this function:

◆ RemoveItemsSetItem()

void RemoveItemsSetItem ( Player player,
Item const *  item 
)

Definition at line 169 of file Item.cpp.

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

◆ UpdateItemSetAuras()

void UpdateItemSetAuras ( Player player,
bool  formChange 
)

Definition at line 221 of file Item.cpp.

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

Variable Documentation

◆ AppearanceModifierSlotBySpec

ItemModifier const AppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS]

◆ IllusionModifierSlotBySpec

ItemModifier const IllusionModifierSlotBySpec[MAX_SPECIALIZATIONS]
Initial value:

Definition at line 334 of file Item.cpp.

◆ ItemTransmogrificationSlots

int32 const ItemTransmogrificationSlots[MAX_INVTYPE]

Definition at line 2014 of file Item.cpp.

◆ SecondaryAppearanceModifierSlotBySpec

ItemModifier const SecondaryAppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS]