|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include "Common.h"#include "ConditionMgr.h"#include "DatabaseEnv.h"#include "Item.h"#include "ItemEnchantmentMgr.h"#include "ObjectMgr.h"#include "Opcodes.h"#include "Player.h"#include "ScriptMgr.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "WorldPacket.h"#include "WorldSession.h"Go to the source code of this file.
Functions | |
| void | AddItemsSetItem (Player *player, Item *item) |
| bool | ItemCanGoIntoBag (ItemTemplate const *pProto, ItemTemplate const *pBagProto) |
| void | RemoveItemsSetItem (Player *player, ItemTemplate const *proto) |
Definition at line 20 of file Item.cpp.
References Player::ApplyEquipSpell(), Player::GetSkillValue(), Item::GetTemplate(), SpellInfo::Id, ItemSetEffect::item_count, ItemTemplate::ItemId, ItemSetEntry::items_to_triggerspell, ItemTemplate::ItemSet, Player::ItemSetEff, MAX_ITEM_SET_SPELLS, ItemSetEntry::required_skill_id, ItemSetEntry::required_skill_value, ItemSetEffect::setid, SF_LOG_ERROR, sItemSetStore, ItemSetEffect::spells, ItemSetEntry::spells, and sSpellMgr.
Referenced by Player::_ApplyAllItemMods(), and Player::EquipItem().
| bool ItemCanGoIntoBag | ( | ItemTemplate const * | pProto, |
| ItemTemplate const * | pBagProto ) |
Definition at line 160 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::BagFamily, ItemTemplate::Class, 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_SOUL_CONTAINER, ITEM_SUBCLASS_TACKLE_CONTAINER, and ItemTemplate::SubClass.
Referenced by Player::CanStoreItem_InBag(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), and Player::SwapItem().
| void RemoveItemsSetItem | ( | Player * | player, |
| ItemTemplate const * | proto ) |
Definition at line 102 of file Item.cpp.
References Player::ApplyEquipSpell(), ASSERT, SpellInfo::Id, ItemSetEffect::item_count, ItemTemplate::ItemId, ItemSetEntry::items_to_triggerspell, ItemTemplate::ItemSet, Player::ItemSetEff, MAX_ITEM_SET_SPELLS, SF_LOG_ERROR, sItemSetStore, ItemSetEffect::spells, and ItemSetEntry::spells.
Referenced by Player::_RemoveAllItemMods(), Player::DestroyItem(), and Player::RemoveItem().