![]() |
TrinityCore
|
#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) |
Definition at line 76 of file Item.cpp.
References Player::ApplyEquipSpell(), BonusData::ContentTuningId, DIFFICULTY_NONE, ItemSetEffect::EquippedItems, Item::GetBonus(), Object::GetEntry(), ItemTemplate::GetId(), ItemTemplate::GetItemSet(), Unit::GetLevel(), Player::GetPrimarySpecialization(), Player::GetSkillValue(), Item::GetTemplate(), ITEM_SET_FLAG_LEGACY_INACTIVE, Player::ItemSetEff, ItemSetEffect::ItemSetID, Player::m_playerData, BonusData::PlayerLevelToItemLevelCurveId, ItemSetEntry::RequiredSkill, ItemSetEntry::RequiredSkillRank, sDB2Manager, ItemSetEffect::SetBonuses, ItemSetEntry::SetFlags, sItemSetStore, sSpellMgr, and TC_LOG_ERROR.
Referenced by Player::_ApplyAllItemMods(), Player::_ApplyAllLevelScaleItemMods(), and Player::EquipItem().
| void DeleteItemSetEffects | ( | ItemSetEffect * | itemSetEffect | ) |
Definition at line 245 of file Item.cpp.
Referenced by Player::~Player().
|
static |
Definition at line 602 of file Item.cpp.
References BonusData::EffectCount, and BonusData::Effects.
Referenced by Item::GetSpellCharges(), and Item::SetSpellCharges().
| bool ItemCanGoIntoBag | ( | ItemTemplate const * | pProto, |
| ItemTemplate const * | pBagProto | ||
| ) |
Definition at line 250 of file Item.cpp.
References BAG_FAMILY_MASK_ARROWS, BAG_FAMILY_MASK_BULLETS, BAG_FAMILY_MASK_COOKING_SUPP, BAG_FAMILY_MASK_ENCHANTING_SUPP, BAG_FAMILY_MASK_ENGINEERING_SUPP, BAG_FAMILY_MASK_FISHING_SUPP, BAG_FAMILY_MASK_GEMS, BAG_FAMILY_MASK_HERBS, BAG_FAMILY_MASK_INSCRIPTION_SUPP, BAG_FAMILY_MASK_LEATHERWORKING_SUPP, BAG_FAMILY_MASK_MINING_SUPP, BAG_FAMILY_MASK_SOUL_SHARDS, ItemTemplate::GetBagFamily(), ItemTemplate::GetClass(), ItemTemplate::GetSubClass(), ItemTemplate::IsCraftingReagent(), ITEM_CLASS_CONTAINER, ITEM_CLASS_QUIVER, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_CONTAINER, ITEM_SUBCLASS_COOKING_CONTAINER, ITEM_SUBCLASS_ENCHANTING_CONTAINER, ITEM_SUBCLASS_ENGINEERING_CONTAINER, ITEM_SUBCLASS_GEM_CONTAINER, ITEM_SUBCLASS_HERB_CONTAINER, ITEM_SUBCLASS_INSCRIPTION_CONTAINER, ITEM_SUBCLASS_LEATHERWORKING_CONTAINER, ITEM_SUBCLASS_MINING_CONTAINER, ITEM_SUBCLASS_QUIVER, ITEM_SUBCLASS_REAGENT_CONTAINER, ITEM_SUBCLASS_SOUL_CONTAINER, and ITEM_SUBCLASS_TACKLE_CONTAINER.
Referenced by Player::CanStoreItem_InBag(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), and Player::SwapItem().
| Item * NewItemOrBag | ( | ItemTemplate const * | proto | ) |
Definition at line 55 of file Item.cpp.
References ItemTemplate::GetId(), ItemTemplate::GetInventoryType(), INVTYPE_BAG, and sDB2Manager.
Referenced by Player::_LoadItem(), Player::_LoadMailedItem(), Item::CreateItem(), AuctionHouseMgr::LoadAuctions(), and Guild::BankTab::LoadItemFromDB().
Definition at line 1310 of file Item.cpp.
Referenced by WorldSession::HandleWrapItem().
Definition at line 169 of file Item.cpp.
References Player::ApplyEquipSpell(), ASSERT, DIFFICULTY_NONE, ItemSetEffect::EquippedItems, Object::GetEntry(), ItemTemplate::GetItemSet(), Item::GetTemplate(), Player::ItemSetEff, sDB2Manager, ItemSetEffect::SetBonuses, sItemSetStore, sSpellMgr, and TC_LOG_ERROR.
Referenced by Player::_ApplyAllLevelScaleItemMods(), Player::_RemoveAllItemMods(), Player::DestroyItem(), and Player::RemoveItem().
| void UpdateItemSetAuras | ( | Player * | player, |
| bool | formChange | ||
| ) |
Definition at line 221 of file Item.cpp.
References Player::ApplyEquipSpell(), DIFFICULTY_NONE, Player::GetPrimarySpecialization(), Player::ItemSetEff, Player::m_playerData, and sSpellMgr.
Referenced by Player::ActivateTalentGroup(), Player::ApplyTraitEntryChanges(), Player::ResetTalentSpecialization(), and Player::UpdateEquipSpellsAtFormChange().
| ItemModifier const AppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS] |
Definition at line 325 of file Item.cpp.
Referenced by Item::GetDisplayId(), Item::GetVisibleAppearanceModId(), Item::GetVisibleEntry(), Item::GetVisibleModifiedAppearanceId(), and WorldSession::HandleTransmogrifyItems().
| ItemModifier const IllusionModifierSlotBySpec[MAX_SPECIALIZATIONS] |
Definition at line 334 of file Item.cpp.
Referenced by Item::GetVisibleEnchantmentId(), and WorldSession::HandleTransmogrifyItems().
| int32 const ItemTransmogrificationSlots[MAX_INVTYPE] |
Definition at line 2014 of file Item.cpp.
Referenced by CollectionMgr::AddItemAppearance(), Item::CanTransmogrifyItemWithItem(), and CollectionMgr::IsSetCompleted().
| ItemModifier const SecondaryAppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS] |
Definition at line 343 of file Item.cpp.
Referenced by Item::GetVisibleSecondaryModifiedAppearanceId(), and WorldSession::HandleTransmogrifyItems().