![]() |
TrinityCore
|
#include "Item.h"#include "Bag.h"#include "Common.h"#include "ConditionMgr.h"#include "DatabaseEnv.h"#include "DBCStores.h"#include "GameTime.h"#include "ItemEnchantmentMgr.h"#include "ItemPackets.h"#include "Log.h"#include "LootItemStorage.h"#include "Map.h"#include "ObjectAccessor.h"#include "ObjectMgr.h"#include "ScriptMgr.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "StringConvert.h"#include "Player.h"#include "TradeData.h"#include "UpdateData.h"#include "World.h"#include "WorldPacket.h"#include "WorldSession.h"
Include dependency graph for Item.cpp:Go to the source code of this file.
Functions | |
| void | AddItemsSetItem (Player *player, Item *item) |
| void | RemoveItemsSetItem (Player *player, ItemTemplate const *proto) |
| bool | ItemCanGoIntoBag (ItemTemplate const *pProto, ItemTemplate const *pBagProto) |
| void | AddItemToUpdateQueueOf (Item *item, Player *player) |
| void | RemoveItemFromUpdateQueueOf (Item *item, Player *player) |
Definition at line 43 of file Item.cpp.
References Player::ApplyEquipSpell(), ItemTemplate::GetId(), ItemTemplate::GetItemSet(), Player::GetSkillValue(), Item::GetTemplate(), SpellInfo::Id, ItemSetEffect::item_count, Player::ItemSetEff, MAX_ITEM_SET_SPELLS, ItemSetEntry::RequiredSkill, ItemSetEntry::RequiredSkillRank, ItemSetEffect::setid, ItemSetEntry::SetSpellID, ItemSetEntry::SetThreshold, sItemSetStore, ItemSetEffect::spells, sSpellMgr, and TC_LOG_ERROR.
Referenced by Player::_ApplyAllItemMods(), and Player::EquipItem().
| bool ItemCanGoIntoBag | ( | ItemTemplate const * | pProto, |
| ItemTemplate const * | pBagProto | ||
| ) |
Definition at line 183 of file Item.cpp.
References BAG_FAMILY_MASK_ARROWS, BAG_FAMILY_MASK_BULLETS, BAG_FAMILY_MASK_ENCHANTING_SUPP, BAG_FAMILY_MASK_ENGINEERING_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(), ITEM_CLASS_CONTAINER, ITEM_CLASS_QUIVER, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_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, and ITEM_SUBCLASS_SOUL_CONTAINER.
Referenced by Player::CanStoreItem_InBag(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), and Player::SwapItem().
Definition at line 696 of file Item.cpp.
Referenced by WorldSession::HandleSellItemOpcode(), and WorldSession::HandleWrapItemOpcode().
| void RemoveItemsSetItem | ( | Player * | player, |
| ItemTemplate const * | proto | ||
| ) |
Definition at line 125 of file Item.cpp.
References Player::ApplyEquipSpell(), ASSERT, ItemTemplate::GetId(), ItemTemplate::GetItemSet(), SpellInfo::Id, ItemSetEffect::item_count, Player::ItemSetEff, MAX_ITEM_SET_SPELLS, ItemSetEntry::SetSpellID, ItemSetEntry::SetThreshold, sItemSetStore, ItemSetEffect::spells, and TC_LOG_ERROR.
Referenced by Player::_RemoveAllItemMods(), Player::DestroyItem(), and Player::RemoveItem().