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

Item * NewItemOrBag (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()

◆ 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.

Referenced by Player::~Player().

◆ FindSpellChargesSlot()

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

Definition at line 602 of file Item.cpp.

References BonusData::EffectCount, and BonusData::Effects.

Referenced by Item::GetSpellCharges(), and Item::SetSpellCharges().

◆ ItemCanGoIntoBag()

◆ NewItemOrBag()

◆ RemoveItemFromUpdateQueueOf()

void RemoveItemFromUpdateQueueOf ( Item *  item,
Player *  player 
)

Definition at line 1310 of file Item.cpp.

Referenced by WorldSession::HandleWrapItem().

◆ RemoveItemsSetItem()

◆ UpdateItemSetAuras()

Variable Documentation

◆ AppearanceModifierSlotBySpec

◆ IllusionModifierSlotBySpec

◆ ItemTransmogrificationSlots

int32 const ItemTransmogrificationSlots[MAX_INVTYPE]

◆ SecondaryAppearanceModifierSlotBySpec