![]() |
TrinityCore
|
#include <Item.h>
Inheritance diagram for Item:Classes | |
| struct | ValuesUpdateForPlayerWithMaskSender |
Static Public Member Functions | |
| static Item * | CreateItem (uint32 itemEntry, uint32 count, ItemContext context, Player const *player=nullptr, bool addDefaultBonuses=true) |
| static void | DeleteFromDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid) |
| static void | DeleteFromInventoryDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid) |
| static uint32 | GetItemLevel (ItemTemplate const *itemTemplate, BonusData const &bonusData, uint32 level, uint32 fixedLevel, int32 minItemLevel, int32 minItemLevelCutoff, int32 maxItemLevel, bool pvpBonus, uint32 azeriteLevel, uint32 overrideContentTuningId) |
| static ItemDisenchantLootEntry const * | GetBaseDisenchantLoot (ItemTemplate const *itemTemplate, uint32 quality, uint32 itemLevel) |
| static bool | CanTransmogrifyItemWithItem (Item const *item, ItemModifiedAppearanceEntry const *itemModifiedAppearance) |
| static uint32 | GetBuyPrice (ItemTemplate const *proto, uint32 quality, uint32 itemLevel, bool &standardPrice) |
| static uint32 | GetSellPrice (ItemTemplate const *proto, uint32 quality, uint32 itemLevel) |
Static Public Member Functions inherited from Object | |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (Object *o) |
| static Conversation const * | ToConversation (Object const *o) |
Static Public Member Functions inherited from BaseEntity | |
| static ObjectGuid | GetGUID (BaseEntity const *o) |
Public Attributes | |
| std::unique_ptr< Loot > | m_loot |
| bool | m_lootGenerated |
| UF::UpdateField< UF::ItemData, uint32(WowCS::EntityFragment::CGObject), TYPEID_ITEM > | m_itemData |
Public Attributes inherited from Object | |
| UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECT > | m_objectData |
Public Attributes inherited from BaseEntity | |
| UF::UpdateFieldHolder | m_values |
Protected Attributes | |
| BonusData | _bonusData |
Protected Attributes inherited from BaseEntity | |
| TypeID | m_objectTypeId = NUM_CLIENT_OBJECT_TYPES |
| CreateObjectBits | m_updateFlag = {} |
| WowCS::EntityFragmentsHolder | m_entityFragments |
| bool | m_objectUpdated = false |
Private Member Functions | |
| int32 | GetArtifactPowerIndex (uint32 artifactPowerId) const |
Private Attributes | |
| std::string | m_text |
| uint8 | m_slot |
| Bag * | m_container |
| ItemUpdateState | uState |
| int16 | uQueuePos |
| bool | mb_in_trade |
| ObjectGuid | m_refundRecipient |
| uint64 | m_paidMoney |
| uint32 | m_paidExtendedCost |
| GuidSet | allowedGUIDs |
| ItemRandomBonusListId | m_randomBonusListId |
| ObjectGuid | m_childItem |
| std::array< uint32, MAX_ITEM_PROTO_SOCKETS > | m_gemScalingLevels |
Friends | |
| void | AddItemToUpdateQueueOf (Item *item, Player *player) |
| void | RemoveItemFromUpdateQueueOf (Item *item, Player *player) |
Additional Inherited Members | |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
| Item::Item | ( | ) |
Definition at line 486 of file Item.cpp.
References _bonusData, WowCS::EntityFragmentsHolder::Add(), ITEM_NEW, m_container, BaseEntity::m_entityFragments, m_gemScalingLevels, m_lootGenerated, BaseEntity::m_objectTypeId, m_paidExtendedCost, m_paidMoney, m_randomBonusListId, m_slot, mb_in_trade, WowCS::Tag_Item, TYPEID_ITEM, uQueuePos, and uState.
|
default |
| void Item::AddArtifactPower | ( | ArtifactPowerData const * | artifactPower | ) |
Definition at line 2675 of file Item.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), ArtifactPowerData::ArtifactPowerId, UF::ArtifactPower::ArtifactPowerID, UF::ItemData::ArtifactPowers, ArtifactPowerData::CurrentRankWithBonus, UF::ArtifactPower::CurrentRankWithBonus, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), ArtifactPowerData::PurchasedRank, and UF::ArtifactPower::PurchasedRank.
Referenced by InitArtifactPowers().
| void Item::AddBonuses | ( | uint32 | bonusListID | ) |
Definition at line 2613 of file Item.cpp.
References _bonusData, BonusData::AddBonus(), BonusData::AppearanceModID, WorldPackets::Item::ItemBonusKey::BonusListIDs, advstd::ranges::contains, GetBonusListIDs(), Object::GetEntry(), ItemBonusMgr::GetItemBonuses(), UF::ItemData::ItemAppearanceModID, UF::ItemData::ItemBonusKey, WorldPackets::Item::ItemBonusKey::ItemID, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by CheckArtifactRelicSlotUnlock(), CollectionMgr::CheckHeirloomUpgrades(), BlackMarketMgr::SendAuctionWonMail(), and SetItemRandomBonusList().
|
overridevirtual |
| void Item::ApplyArtifactPowerEnchantmentBonuses | ( | EnchantmentSlot | slot, |
| uint32 | enchantId, | ||
| bool | apply, | ||
| Player * | owner | ||
| ) |
Definition at line 2752 of file Item.cpp.
References _bonusData, Player::ApplyArtifactPowerRank(), UF::ArtifactPower::ArtifactPowerID, UF::ItemData::ArtifactPowers, UF::ArtifactPower::CurrentRankWithBonus, BonusData::GemRelicType, GetArtifactPowerIndex(), IsEquipped(), ConditionMgr::IsPlayerMeetingCondition(), ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_ID, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_TYPE, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_PICKER, m_itemData, BaseEntity::m_values, MAX_ITEM_ENCHANTMENT_EFFECTS, UF::UpdateFieldHolder::ModifyValue(), sArtifactPowerPickerStore, sArtifactPowerStore, sDB2Manager, BaseEntity::SetUpdateFieldValue(), SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_3, and sSpellItemEnchantmentStore.
Referenced by SetEnchantment().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 1790 of file Item.cpp.
References BaseEntity::BuildFieldsUpdate(), BaseEntity::BuildUpdateChangesMask(), BaseEntity::ClearUpdateMask(), and GetOwner().
|
overrideprotectedvirtual |
Implements Object.
Definition at line 1807 of file Item.cpp.
References flags, m_itemData, and Object::m_objectData.
|
overrideprotectedvirtual |
Implements Object.
Definition at line 1813 of file Item.cpp.
References flags, UF::UpdateFieldHolder::GetChangedObjectTypeMask(), UF::UpdateFieldHolder::HasChanged(), m_itemData, Object::m_objectData, BaseEntity::m_values, TYPEID_ITEM, and TYPEID_OBJECT.
| void Item::BuildValuesUpdateForPlayerWithMask | ( | UpdateData * | data, |
| UF::ObjectData::Mask const & | requestedObjectMask, | ||
| UF::ItemData::Mask const & | requestedItemMask, | ||
| Player const * | target, | ||
| bool | ignoreNestedChangesMask | ||
| ) | const |
Definition at line 1836 of file Item.cpp.
References UpdateData::AddUpdateBlock(), Object::BuildEntityFragmentsForValuesUpdateForPlayerWithMask(), UF::ItemData::FilterDisallowedFieldsMaskForFlag(), flags, UpdateMask< Bits >::GetBlock(), GetUpdateFieldFlagsFor(), m_itemData, Object::m_objectData, BaseEntity::PrepareValuesUpdateBuffer(), ByteBuffer::put(), UpdateMask< Bits >::Set(), TYPEID_ITEM, TYPEID_OBJECT, and ByteBuffer::wpos().
Referenced by Item::ValuesUpdateForPlayerWithMaskSender::operator()().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1824 of file Item.cpp.
References UF::ItemData::AppendAllowedFieldsMaskForFlag(), flags, UpdateMask< Bits >::GetBlock(), m_itemData, UpdateMask< Bits >::Set(), and TYPEID_ITEM.
| uint64 Item::CalculateDurabilityRepairCost | ( | float | discount, |
| bool | useRateConfig = true |
||
| ) | const |
Definition at line 1383 of file Item.cpp.
References DurabilityCostsEntry::ArmorSubClassCost, ASSERT, DurabilityQualityEntry::Data, ItemTemplate::GetClass(), GetItemLevel(), GetOwner(), GetQuality(), GetRepairCostMultiplier(), ItemTemplate::GetSubClass(), GetTemplate(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, m_itemData, RATE_REPAIRCOST, sDurabilityCostsStore, sDurabilityQualityStore, sWorld, and DurabilityCostsEntry::WeaponSubClassCost.
Referenced by Player::DurabilityRepair(), and GetSellPrice().
| InventoryResult Item::CanBeMergedPartlyWith | ( | ItemTemplate const * | proto | ) | const |
Definition at line 1460 of file Item.cpp.
References EQUIP_ERR_CANT_STACK, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_OK, GetCount(), Object::GetEntry(), ItemTemplate::GetId(), ItemTemplate::GetMaxStackSize(), and m_lootGenerated.
Referenced by Player::CanStoreItem_InBag(), Player::CanStoreItem_InInventorySlots(), Player::CanStoreItem_InSpecificSlot(), and Player::CanStoreItems().
| bool Item::CanBeTraded | ( | bool | mail = false, |
| bool | trade = false |
||
| ) | const |
Definition at line 1342 of file Item.cpp.
References EQUIP_ERR_OK, BaseEntity::GetGUID(), GetOwner(), GetPos(), IsBag(), Player::IsBagPos(), IsBOPTradeable(), IsBoundAccountWide(), IsBoundByEnchant(), IsSoulBound(), m_lootGenerated, and ToBag().
Referenced by WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleSendMail(), and WorldSession::HandleSetTradeItemOpcode().
|
static |
Definition at line 2053 of file Item.cpp.
References ItemTemplate::GetClass(), ItemTemplate::GetInventoryType(), GetItemModifiedAppearance(), ItemTemplate::GetSubClass(), GetTemplate(), ItemTemplate::GetWeaponTransmogOutfitSlotOption(), INVTYPE_AMMO, INVTYPE_BAG, INVTYPE_FINGER, INVTYPE_QUIVER, INVTYPE_RELIC, INVTYPE_TRINKET, IsValidTransmogrificationTarget(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_ARMOR_COSMETIC, ItemModifiedAppearanceEntry::ItemID, ItemTransmogrificationSlots, and sObjectMgr.
Referenced by WorldSession::HandleTransmogrifyItems().
| void Item::CheckArtifactRelicSlotUnlock | ( | Player const * | owner | ) |
Definition at line 1164 of file Item.cpp.
References AddBonuses(), ItemTemplate::GetArtifactID(), GetTemplate(), Player::MeetPlayerCondition(), and sArtifactUnlockStore.
Referenced by Create(), and LoadArtifactData().
| bool Item::CheckSoulboundTradeExpire | ( | ) |
Definition at line 1983 of file Item.cpp.
References ClearSoulboundTradeable(), GetOwner(), HOUR, and m_itemData.
Referenced by Player::UpdateSoulboundTradeItems().
| void Item::ClearBonuses | ( | ) |
Definition at line 2641 of file Item.cpp.
References _bonusData, BonusData::AppearanceModID, Object::GetEntry(), GetTemplate(), BonusData::Initialize(), UF::ItemData::ItemAppearanceModID, UF::ItemData::ItemBonusKey, WorldPackets::Item::ItemBonusKey::ItemID, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by CollectionMgr::CheckHeirloomUpgrades().
| void Item::ClearEnchantment | ( | EnchantmentSlot | slot | ) |
Definition at line 1558 of file Item.cpp.
References UF::ItemEnchantment::Charges, UF::ItemEnchantment::Duration, UF::ItemData::Enchantment, GetEnchantmentId(), GetOwner(), UF::ItemEnchantment::ID, UF::ItemEnchantment::Inactive, ITEM_CHANGED, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SetState(), and BaseEntity::SetUpdateFieldValue().
Referenced by WorldSession::HandleCancelTempEnchantmentOpcode(), and Player::RemoveItem().
| void Item::ClearSoulboundTradeable | ( | Player * | currentOwner | ) |
Definition at line 1969 of file Item.cpp.
References CollectionMgr::AddItemAppearance(), allowedGUIDs, CHAR_DEL_ITEM_BOP_TRADE, CharacterDatabase, WorldSession::GetCollectionMgr(), BaseEntity::GetGUID(), Player::GetSession(), ITEM_CHANGED, ITEM_FIELD_FLAG_BOP_TRADEABLE, RemoveItemFlag(), SetState(), and PreparedStatementBase::setUInt64().
Referenced by Player::_LoadItem(), Player::_StoreItem(), CheckSoulboundTradeExpire(), Player::DestroyItem(), Spell::EffectApplyEnchantIllusion(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Player::EquipItem(), WorldSession::HandleSocketGems(), and WorldSession::HandleTransmogrifyItems().
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 1877 of file Item.cpp.
References UF::UpdateFieldHolder::ClearChangesMask(), Object::ClearValuesChangesMask(), m_itemData, and BaseEntity::m_values.
Referenced by AzeriteEmpoweredItem::ClearValuesChangesMask(), AzeriteItem::ClearValuesChangesMask(), and Bag::ClearValuesChangesMask().
Definition at line 1751 of file Item.cpp.
References CreateItem(), GetContext(), GetCreator(), Object::GetEntry(), GetGiftCreator(), GetModifier(), ITEM_FIELD_FLAG_BOP_TRADEABLE, ITEM_FIELD_FLAG_REFUNDABLE, ITEM_MODIFIER_TIMEWALKER_LEVEL, m_itemData, m_randomBonusListId, ReplaceAllItemFlags(), SetBonuses(), SetCreator(), SetExpiration(), SetFixedLevel(), SetGiftCreator(), and SetItemRandomBonusList().
Referenced by Guild::BankMoveItemData::_StoreItem(), Player::_StoreItem(), AuctionHouseObject::BuyCommodity(), WorldSession::HandleAuctionSellCommodity(), Player::SellItemToVendor(), and Player::SplitItem().
| void Item::CopyArtifactDataFromParent | ( | Item * | parent | ) |
Definition at line 2840 of file Item.cpp.
References _bonusData, BonusData::GemItemLevelBonus, GetAppearanceModId(), GetBonus(), GetModifier(), ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, SetAppearanceModId(), and SetModifier().
|
virtual |
Reimplemented in AzeriteEmpoweredItem, AzeriteItem, and Bag.
Definition at line 510 of file Item.cpp.
References _bonusData, BaseEntity::_Create(), CheckArtifactRelicSlotUnlock(), ItemTemplate::GetArtifactID(), ItemTemplate::GetDuration(), GetEffects(), GameTime::GetGameTime(), BaseEntity::GetGUID(), GetOwner(), InitArtifactPowers(), BonusData::Initialize(), ConditionMgr::IsPlayerMeetingCondition(), ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, ItemTemplate::MaxDurability, sArtifactAppearanceSetStore, sArtifactAppearanceStore, SetAppearanceModId(), SetContainedIn(), SetContext(), SetCount(), SetCreatePlayedTime(), SetCreateTime(), SetDurability(), Object::SetEntry(), SetExpiration(), SetMaxDurability(), SetModifier(), Object::SetObjectScale(), SetOwnerGUID(), SetSpellCharges(), and sObjectMgr.
Referenced by AzeriteEmpoweredItem::Create(), AzeriteItem::Create(), and CreateItem().
|
static |
Definition at line 1721 of file Item.cpp.
References ABORT, ASSERT_NODEBUGINFO, Create(), ItemBonusMgr::GetBonusListsForItem(), ItemTemplate::GetMaxStackSize(), Item, NewItemOrBag(), SetBonuses(), SetCount(), and sObjectMgr.
Referenced by AuctionBotSeller::AddNewAuctions(), Player::CanEquipNewItem(), CloneItem(), PlayerAchievementMgr::CompletedAchievement(), Spell::EffectSummonChangeItem(), Player::EquipNewItem(), WorldSession::HandleMailCreateTextItem(), send_commandscript::HandleSendItemsCommand(), MailDraft::prepareItems(), BlackMarketMgr::SendAuctionWonMail(), Player::SendItemRetrievalMail(), and Player::StoreNewItem().
|
virtual |
Reimplemented in AzeriteEmpoweredItem, AzeriteItem, and Bag.
Definition at line 1211 of file Item.cpp.
References DeleteFromDB(), BaseEntity::GetGUID(), m_loot, and sLootItemStorage.
|
static |
Definition at line 1180 of file Item.cpp.
References CHAR_DEL_GIFT, CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_ITEM_INSTANCE_ARTIFACT, CHAR_DEL_ITEM_INSTANCE_ARTIFACT_POWERS, CHAR_DEL_ITEM_INSTANCE_GEMS, CHAR_DEL_ITEM_INSTANCE_MODIFIERS, CHAR_DEL_ITEM_INSTANCE_TRANSMOG, CharacterDatabase, and PreparedStatementBase::setUInt64().
Referenced by Player::_LoadItem(), Player::_LoadMailedItem(), Player::_SaveInventory(), Player::_SaveMail(), Guild::BankMoveItemData::_StoreItem(), DeleteFromDB(), AzeriteEmpoweredItem::DeleteFromDB(), AzeriteItem::DeleteFromDB(), Bag::DeleteFromDB(), MailDraft::deleteIncludedItems(), and ObjectMgr::ReturnOrDeleteOldMails().
| void Item::DeleteFromInventoryDB | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 1228 of file Item.cpp.
References DeleteFromInventoryDB(), and BaseEntity::GetGUID().
|
static |
Definition at line 1221 of file Item.cpp.
References CHAR_DEL_CHAR_INVENTORY_BY_ITEM, CharacterDatabase, and PreparedStatementBase::setUInt64().
Referenced by Player::_LoadItem(), Player::_SaveInventory(), Player::AutoUnequipOffhandIfNeed(), DeleteFromInventoryDB(), WorldSession::HandleAuctionSellCommodity(), and WorldSession::HandleAuctionSellItem().
| void Item::DeleteRefundDataFromDB | ( | CharacterDatabaseTransaction * | trans | ) |
Definition at line 1918 of file Item.cpp.
References CHAR_DEL_ITEM_REFUND_INSTANCE, CharacterDatabase, BaseEntity::GetGUID(), and PreparedStatementBase::setUInt64().
Referenced by SetNotRefundable().
|
inline |
Definition at line 343 of file Item.h.
Referenced by Player::_LoadItem(), Player::_LoadMailedItem(), Player::_SaveInventory(), and Guild::BankTab::SetItem().
| bool Item::GemsFitSockets | ( | ) | const |
Definition at line 1634 of file Item.cpp.
References ItemTemplate::GetGemProperties(), ItemTemplate::GetSocketColor(), GetTemplate(), m_itemData, MAX_ITEM_PROTO_SOCKETS, sGemPropertiesStore, sObjectMgr, SocketColorToGemTypeMask, and GemPropertiesEntry::Type.
Referenced by WorldSession::HandleSocketGems().
|
inline |
Definition at line 360 of file Item.h.
Referenced by CopyArtifactDataFromParent(), and GetVisibleAppearanceModId().
| UF::ArtifactPower const * Item::GetArtifactPower | ( | uint32 | artifactPowerId | ) | const |
Definition at line 2666 of file Item.cpp.
References GetArtifactPowerIndex(), and m_itemData.
Referenced by WorldSession::HandleArtifactAddPower(), and CriteriaHandler::ModifierSatisfied().
Definition at line 2658 of file Item.cpp.
References UF::ArtifactPower::ArtifactPowerID, and m_itemData.
Referenced by ApplyArtifactPowerEnchantmentBonuses(), GetArtifactPower(), and SetArtifactPower().
| uint8 Item::GetBagSlot | ( | ) | const |
Definition at line 1331 of file Item.cpp.
References GetSlot(), INVENTORY_SLOT_BAG_0, and m_container.
Referenced by Player::_SaveInventory(), Player::AddQuestAndCheckCompletion(), Player::CanEquipChildItem(), Player::DestroyItemCount(), WorldSession::DoLootRelease(), Spell::EffectSummonChangeItem(), Spell::EffectUncageBattlePet(), Player::EquipChildItem(), GetDebugInfo(), WorldSession::HandleAddToy(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoEquipItemOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleTurnInPetition(), WorldSession::HandleUseCritterItem(), LootItemStorage::LoadStoredLoot(), Player::RefundItem(), Player::SellItemToVendor(), Player::SendNewItem(), UpdateDuration(), and Bag::~Bag().
|
static |
Definition at line 2443 of file Item.cpp.
References BIND_QUEST, ItemTemplate::GetArea(), ItemTemplate::GetBonding(), ItemTemplate::GetClass(), ItemTemplate::GetId(), ItemTemplate::GetMap(), ItemTemplate::GetMaxStackSize(), ItemTemplate::GetRequiredExpansion(), GetSellPrice(), ItemTemplate::GetSubClass(), ItemTemplate::HasFlag(), ITEM_FLAG_CONJURED, ITEM_FLAG_NO_DISENCHANT, sDB2Manager, and sItemDisenchantLootStore.
Referenced by GetDisenchantLootId(), GetDisenchantSkillRequired(), LootRoll::GetItemDisenchantLootId(), and LootRoll::GetItemDisenchantSkillRequired().
|
inline |
Definition at line 215 of file Item.h.
Referenced by Player::_StoreItem(), LoadFromDB(), Player::ProcessItemCast(), and Player::VisualizeItem().
|
inline |
Definition at line 201 of file Item.h.
Referenced by AddItemsSetItem(), Player::CanEquipUniqueItem(), CopyArtifactDataFromParent(), AuctionsBucketKey::ForItem(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), and Player::StoreNewItem().
|
inline |
Definition at line 245 of file Item.h.
Referenced by AddBonuses(), CollectionMgr::CheckHeirloomUpgrades(), AzeriteEmpoweredItem::ClearSelectedAzeritePowers(), WorldPackets::Item::ItemInstance::Initialize(), CriteriaHandler::ModifierSatisfied(), SaveToDB(), and SetBonuses().
|
static |
Definition at line 2106 of file Item.cpp.
References ItemPriceBaseEntry::Armor, ImportPriceArmorEntry::ChainModifier, ImportPriceArmorEntry::ClothModifier, ImportPriceQualityEntry::Data, ImportPriceShieldEntry::Data, ImportPriceWeaponEntry::Data, ItemTemplate::GetBuyPrice(), ItemTemplate::GetClass(), ItemTemplate::GetInventoryType(), ItemTemplate::GetPriceRandomValue(), ItemTemplate::GetPriceVariance(), ItemTemplate::GetSubClass(), ItemTemplate::HasFlag(), INVTYPE_2HWEAPON, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, ITEM_CLASS_GEM, ITEM_FLAG2_OVERRIDE_GOLD_COST, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_MISCELLANEOUS, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_GEM_ARTIFACT_RELIC, ImportPriceArmorEntry::LeatherModifier, ImportPriceArmorEntry::PlateModifier, sImportPriceArmorStore, sImportPriceQualityStore, sImportPriceShieldStore, sImportPriceWeaponStore, sItemPriceBaseStore, and ItemPriceBaseEntry::Weapon.
Definition at line 2101 of file Item.cpp.
References GetBuyPrice(), GetItemLevel(), GetQuality(), and GetTemplate().
Referenced by GetBuyPrice(), and GetSellPrice().
|
inline |
Definition at line 438 of file Item.h.
Referenced by Player::AutoUnequipChildItem(), Player::CanEquipChildItem(), Player::EquipChildItem(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleSocketGems(), and Player::SwapItem().
|
inline |
|
inline |
Definition at line 297 of file Item.h.
Referenced by Player::_SaveInventory(), and debug_commandscript::HandleDebugGetItemStateCommand().
|
inline |
Definition at line 456 of file Item.h.
Referenced by CloneItem(), Spell::EffectSummonChangeItem(), AzeriteEmpoweredItem::GetRequiredAzeriteLevelForTier(), and WorldPackets::Item::ItemInstance::Initialize().
|
inline |
Definition at line 289 of file Item.h.
Referenced by Guild::_DoItemsMove(), Guild::BankMoveItemData::_ReserveSpace(), Guild::_SendBankContentUpdate(), Player::_StoreItem(), Player::AddItemToBuyBackSlot(), AuctionHouseObject::BuyCommodity(), Player::CanBankItem(), CanBeMergedPartlyWith(), Player::CanEquipItem(), Player::CanSellItemToVendor(), Guild::BankMoveItemData::CanStore(), Player::CanStoreItem(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InInventorySlots(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), Player::CanTakeMoreSimilarItems(), Player::CanUnequipItem(), Spell::CheckItems(), Player::DestroyItem(), Player::DestroyItemCount(), WorldSession::DoLootRelease(), Spell::EffectMilling(), Spell::EffectProspecting(), Spell::EffectScriptEffect(), Player::EquipItem(), GetDebugInfo(), Player::GetItemCount(), Player::GetItemCountWithLimitCategory(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), Player::HasItemWithLimitCategoryEquipped(), Guild::BankMoveItemData::LogAction(), WorldPackets::Mail::MailAttachedItem::MailAttachedItem(), WorldSession::moveItems(), Player::MoveItemToInventory(), SaveToDB(), Player::SellItemToVendor(), BlackMarketMgr::SendAuctionWonMail(), Player::SendNewItem(), Player::SplitItem(), Guild::BankMoveItemData::StoreItem(), and Player::SwapItem().
|
inline |
Definition at line 207 of file Item.h.
Referenced by CloneItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldPackets::Inspect::InspectItemData::InspectItemData(), and SaveToDB().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 2908 of file Item.cpp.
References GetBagSlot(), GetCount(), Object::GetDebugInfo(), GetOwnerGUID(), GetSlot(), IsEquipped(), and ObjectGuid::ToString().
Definition at line 2410 of file Item.cpp.
References _bonusData, BonusData::CanDisenchant, BonusData::DisenchantLootId, GetBaseDisenchantLoot(), GetItemLevel(), GetModifier(), GetQuality(), GetTemplate(), ItemDisenchantLootEntry::ID, ITEM_MODIFIER_TIMEWALKER_LEVEL, and BonusData::RequiredLevel.
Referenced by Spell::EffectDisEnchant().
Definition at line 2428 of file Item.cpp.
References _bonusData, BonusData::CanDisenchant, GetBaseDisenchantLoot(), GetItemLevel(), GetModifier(), GetQuality(), GetTemplate(), ITEM_MODIFIER_TIMEWALKER_LEVEL, BonusData::RequiredLevel, and ItemDisenchantLootEntry::SkillRequired.
Referenced by Spell::CheckItems().
Definition at line 2480 of file Item.cpp.
References AppearanceModifierSlotBySpec, Player::GetActiveTalentGroup(), GetItemModifiedAppearance(), GetModifier(), ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS, ItemModifiedAppearanceEntry::ItemAppearanceID, sItemAppearanceStore, and sItemModifiedAppearanceStore.
Referenced by Spell::GetSpellCastDataAmmo().
|
inline |
Definition at line 370 of file Item.h.
Referenced by Player::ApplyEquipCooldown(), Player::ApplyItemEquipSpell(), Player::ApplyItemLootedSpell(), Player::ApplyItemObtainSpells(), Player::CastItemCombatSpell(), Player::CastItemUseSpell(), Spell::CheckItems(), Create(), Spell::EffectLearnSpell(), GetSellPrice(), WorldSession::HandleUseCritterItem(), Player::ProcessItemCast(), Spell::TakeCastItem(), and Spell::TakeReagents().
|
inline |
Definition at line 316 of file Item.h.
Referenced by Spell::EffectSummonChangeItem(), WorldPackets::Mail::MailAttachedItem::MailAttachedItem(), SaveToDB(), SetEnchantment(), and SetEnchantmentCharges().
|
inline |
Definition at line 315 of file Item.h.
Referenced by Player::AddEnchantmentDurations(), Player::ApplyEnchantment(), Spell::EffectSummonChangeItem(), WorldPackets::Mail::MailAttachedItem::MailAttachedItem(), SaveToDB(), SetEnchantment(), and SetEnchantmentDuration().
|
inline |
Definition at line 314 of file Item.h.
Referenced by Guild::_SendBankContentUpdate(), Player::AddEnchantmentDurations(), Player::ApplyEnchantment(), Player::CastItemCombatSpell(), Player::CastItemUseSpell(), Spell::CheckItems(), ClearEnchantment(), Player::CorrectMetaGemEnchants(), Spell::EffectEnchantHeldItem(), Spell::EffectSummonChangeItem(), GetEnchantRequiredLevel(), GetVisibleEnchantmentId(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleSocketGems(), HasEnchantRequiredSkill(), WorldPackets::Inspect::InspectItemData::InspectItemData(), IsBoundByEnchant(), LoadArtifactData(), WorldPackets::Mail::MailAttachedItem::MailAttachedItem(), Player::RemoveItem(), SaveToDB(), SetEnchantment(), Player::ToggleMetaGemsActive(), Player::UpdateDamageDoneMods(), and Player::UpdateSkillEnchantments().
| uint32 Item::GetEnchantRequiredLevel | ( | ) | const |
Definition at line 1434 of file Item.cpp.
References GetEnchantmentId(), MAX_ENCHANTMENT_SLOT, PERM_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
| UF::SocketedGem const * Item::GetGem | ( | uint16 | slot | ) | const |
Definition at line 1571 of file Item.cpp.
References ASSERT, m_itemData, and MAX_GEM_SOCKETS.
Referenced by Player::ApplyEnchantment(), and WorldSession::HandleSocketGems().
Definition at line 1666 of file Item.cpp.
References m_itemData.
Referenced by Player::GetItemCount().
Definition at line 1674 of file Item.cpp.
References m_itemData.
Referenced by Player::CanEquipUniqueItem(), and Player::HasGemWithLimitCategoryEquipped().
|
inline |
Definition at line 209 of file Item.h.
Referenced by CloneItem(), WorldSession::HandleWrapItem(), and SaveToDB().
|
static |
Definition at line 2297 of file Item.cpp.
References BonusData::ContentTuningId, ItemSquishEraEntry::CurveID, ItemSquishEraEntry::Flags, BonusData::GemItemLevelBonus, ItemTemplate::GetInventoryType(), ClientBuild::GetMinorMajorBugfixVersionForBuild(), BonusData::IgnoreSquish, INVTYPE_NON_EQUIP, BonusData::ItemLevel, BonusData::ItemLevelBonus, BonusData::ItemLevelOffset, BonusData::ItemLevelOffsetCurveId, BonusData::ItemLevelOffsetItemLevel, BonusData::ItemSquishEraID, MAX_ITEM_LEVEL, MAX_ITEM_PROTO_SOCKETS, MIN_ITEM_LEVEL, ItemSquishEraEntry::Patch, BonusData::PlayerLevelToItemLevelCurveId, BonusData::PvpItemLevel, BonusData::PvpItemLevelBonus, BonusData::RestrictScalingToContentTuning, sAzeriteLevelInfoStore, BonusData::ScalingConfigCraftingQualityItemLevelBonus, BonusData::ScalingConfigItemLevelBonus, BonusData::ScalingConfigUsesPlayerLevel, sDB2Manager, sItemSquishEraStore, and sRealmList.
Definition at line 2283 of file Item.cpp.
References _bonusData, GetItemLevel(), Unit::GetLevel(), GetModifier(), GetTemplate(), ItemTemplate::HasFlag(), Player::IsUsingPvpItemLevels(), ITEM_FLAG3_IGNORE_ITEM_LEVEL_CAP_IN_PVP, ITEM_MODIFIER_CONTENT_TUNING_ID, ITEM_MODIFIER_TIMEWALKER_LEVEL, Unit::m_unitData, and ToAzeriteItem().
Referenced by Player::_ApplyItemBonuses(), Player::_ApplyWeaponDamage(), CalculateDurabilityRepairCost(), Spell::CheckItems(), AuctionsBucketKey::ForItem(), Player::GetAverageItemLevel(), GetBuyPrice(), GetDisenchantLootId(), GetDisenchantSkillRequired(), LootRoll::GetItemDisenchantLootId(), LootRoll::GetItemDisenchantSkillRequired(), GetItemLevel(), GetItemStatValue(), GetSellPrice(), Spell::prepare(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), Player::StoreLootItem(), Player::UpdateAverageItemLevelEquipped(), Player::UpdateAverageItemLevelTotal(), and Spell::UpdatePointers().
|
inline |
Definition at line 371 of file Item.h.
Referenced by Player::CanTakeMoreSimilarItems(), Player::GetItemCountWithLimitCategory(), WorldSession::HandleSocketGems(), Player::HasItemWithLimitCategoryEquipped(), and Player::SendEquipError().
| ItemModifiedAppearanceEntry const * Item::GetItemModifiedAppearance | ( | ) | const |
Definition at line 2497 of file Item.cpp.
References _bonusData, BonusData::AppearanceModID, Object::GetEntry(), and TransmogMgr::GetItemModifiedAppearance().
Referenced by CollectionMgr::AddItemAppearance(), CanTransmogrifyItemWithItem(), GetDisplayId(), GetVisibleModifiedAppearanceId(), and CollectionMgr::RemoveTemporaryAppearance().
|
inline |
Definition at line 357 of file Item.h.
References ASSERT, and MAX_ITEM_PROTO_STATS.
Referenced by Player::_ApplyItemBonuses(), and GetItemStatValue().
Definition at line 2385 of file Item.cpp.
References _bonusData, ASSERT, GetItemLevel(), GetItemStatType(), GetQuality(), GetRandomPropertyPoints(), GetTemplate(), ITEM_MOD_CORRUPTION, ITEM_MOD_CORRUPTION_RESISTANCE, BonusData::ItemStatSocketCostMultiplier, MAX_ITEM_PROTO_STATS, sItemSocketCostPerLevelGameTable, and BonusData::StatPercentEditor.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 291 of file Item.h.
Referenced by Guild::BankMoveItemData::_ReserveSpace(), Guild::BankMoveItemData::CanStore(), and WorldSession::HandleWrapItem().
| uint32 Item::GetModifier | ( | ItemModifier | modifier | ) | const |
Definition at line 2502 of file Item.cpp.
References m_itemData, and UF::ItemMod::Type.
Referenced by Player::ApplyArtifactPowers(), CloneItem(), CopyArtifactDataFromParent(), Spell::EffectUncageBattlePet(), AuctionsBucketKey::ForItem(), GetDisenchantLootId(), GetDisenchantSkillRequired(), GetDisplayId(), GetItemLevel(), GetRequiredLevel(), GetTotalUnlockedArtifactPowers(), GetVisibleAppearanceModId(), GetVisibleEnchantmentId(), GetVisibleEntry(), GetVisibleModifiedAppearanceId(), GetVisibleSecondaryModifiedAppearanceId(), GiveArtifactXp(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleConfirmArtifactRespec(), WorldSession::HandleTransmogrifyItems(), CriteriaHandler::ModifierSatisfied(), SaveToDB(), Player::SendNewItem(), and SetFixedLevel().
|
overridevirtual |
Implements BaseEntity.
Definition at line 565 of file Item.cpp.
References _bonusData, ItemTemplate::GetName(), GetTemplate(), sItemNameDescriptionStore, Trinity::StringFormat(), and BonusData::Suffix.
Referenced by WorldSession::HandleAuctionSellCommodity(), and WorldSession::HandleMailTakeItem().
| Player * Item::GetOwner | ( | ) | const |
Definition at line 1238 of file Item.cpp.
References ObjectAccessor::FindPlayer(), and GetOwnerGUID().
Referenced by AddToObjectUpdate(), BuildUpdate(), CalculateDurabilityRepairCost(), CanBeTraded(), AzeriteItem::CanUseEssences(), Spell::CheckItems(), CheckSoulboundTradeExpire(), ClearEnchantment(), Create(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectOpenLock(), AzeriteEmpoweredItem::GetRespecCost(), GiveArtifactXp(), AzeriteItem::GiveXP(), Spell::prepare(), RemoveFromObjectUpdate(), SendUpdateSockets(), SetCount(), SetEnchantment(), and SetEnchantmentCharges().
|
inline |
Definition at line 203 of file Item.h.
Referenced by Player::CanSellItemToVendor(), Spell::CheckItems(), Spell::EffectApplyEnchantIllusion(), Spell::EffectSummonChangeItem(), GetDebugInfo(), GetOwner(), GetUpdateFieldFlagsFor(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleWrapItem(), IsBindedNotWith(), Player::MoveItemToInventory(), Spell::prepare(), SaveToDB(), SetEnchantment(), Bag::StoreItem(), and Player::UpdateSoulboundTradeItems().
|
inline |
Definition at line 381 of file Item.h.
Referenced by Player::RefundItem(), SaveRefundDataToDB(), and Player::SendRefundInfo().
|
inline |
Definition at line 380 of file Item.h.
Referenced by Player::RefundItem(), SaveRefundDataToDB(), Player::SendItemRefundResult(), and Player::SendRefundInfo().
| uint32 Item::GetPlayedTime | ( | ) | const |
|
inline |
Definition at line 300 of file Item.h.
Referenced by CanBeTraded(), Player::CanEquipChildItem(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleRepairItemOpcode(), and WorldSession::HandleUseEquipmentSet().
|
inline |
Definition at line 352 of file Item.h.
Referenced by CalculateDurabilityRepairCost(), Player::CanEquipItem(), GetBuyPrice(), GetDisenchantLootId(), GetDisenchantSkillRequired(), GetItemStatValue(), GetSellPrice(), WorldSession::HandleSellAllJunkItems(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), and Player::StoreLootItem().
|
inline |
Definition at line 342 of file Item.h.
Referenced by debug_commandscript::HandleDebugGetItemStateCommand().
|
inline |
Definition at line 379 of file Item.h.
Referenced by Player::RefundItem(), SaveRefundDataToDB(), and Player::SendRefundInfo().
|
inline |
Definition at line 364 of file Item.h.
Referenced by CalculateDurabilityRepairCost().
| int32 Item::GetRequiredLevel | ( | ) | const |
Definition at line 2896 of file Item.cpp.
References _bonusData, GetModifier(), BonusData::HasFixedLevel, ITEM_MODIFIER_TIMEWALKER_LEVEL, BonusData::PlayerLevelToItemLevelCurveId, BonusData::RequiredLevel, BonusData::RequiredLevelCurve, BonusData::RequiredLevelOverride, and sDB2Manager.
Referenced by Player::CanUseItem(), Spell::CheckItems(), AuctionsBucketKey::ForItem(), and Player::SendEquipError().
|
inline |
Definition at line 365 of file Item.h.
Referenced by Player::CanEquipItem().
|
inline |
Definition at line 419 of file Item.h.
Referenced by ScriptMgr::OnCastItemCombatSpell(), ScriptMgr::OnItemRemove(), ScriptMgr::OnItemUse(), and ScriptMgr::OnQuestAccept().
|
static |
Definition at line 2257 of file Item.cpp.
References ItemTemplate::GetBuyCount(), GetBuyPrice(), ItemTemplate::GetClass(), ItemTemplate::GetSellPrice(), ItemTemplate::HasFlag(), ITEM_FLAG2_OVERRIDE_GOLD_COST, and sDB2Manager.
Definition at line 2234 of file Item.cpp.
References CalculateDurabilityRepairCost(), ItemEffectEntry::Charges, GetEffects(), GetItemLevel(), GetQuality(), GetSellPrice(), GetSpellCharges(), GetTemplate(), ITEM_SPELLTRIGGER_ON_USE, ItemEffectEntry::SpellID, and ItemEffectEntry::TriggerType.
Referenced by Player::AddItemToBuyBackSlot(), Player::CanSellItemToVendor(), GetBaseDisenchantLoot(), AuctionHouseMgr::GetItemAuctionDeposit(), GetSellPrice(), WorldSession::HandleTransmogrifyItems(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), and Player::SellItemToVendor().
| uint32 Item::GetSkill | ( | ) |
Definition at line 1244 of file Item.cpp.
References ItemTemplate::GetSkill(), and GetTemplate().
Referenced by Player::CanUseItem().
|
inline |
Definition at line 296 of file Item.h.
Referenced by Player::_SaveInventory(), Player::AddQuestAndCheckCompletion(), Player::ApplyEnchantment(), Player::DestroyItemCount(), WorldSession::DoLootRelease(), Player::DurabilityPointsLoss(), Spell::EffectApplyEnchantIllusion(), Spell::EffectRespecAzeriteEmpoweredItem(), Spell::EffectSummonChangeItem(), Spell::EffectUncageBattlePet(), Player::EquipChildItem(), GetBagSlot(), GetDebugInfo(), AzeriteItem::GiveXP(), WorldSession::HandleAddToy(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), debug_commandscript::HandleDebugGetItemStateCommand(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSocketGems(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleTurnInPetition(), WorldSession::HandleUseCritterItem(), Player::HasGemWithLimitCategoryEquipped(), Player::HasItemOrGemWithIdEquipped(), Player::HasItemWithLimitCategoryEquipped(), Player::RefundItem(), Player::SellItemToVendor(), Player::SendNewItem(), UpdateDuration(), and Bag::~Bag().
Definition at line 359 of file Item.h.
References ASSERT, and MAX_ITEM_PROTO_SOCKETS.
Referenced by Player::_ApplyItemMods(), Player::ApplyEnchantment(), Spell::CheckItems(), Player::CorrectMetaGemEnchants(), WorldSession::HandleSocketGems(), and Player::ToggleMetaGemsActive().
| int32 Item::GetSpellCharges | ( | ItemEffectEntry const * | effect = nullptr | ) | const |
Definition at line 623 of file Item.cpp.
References _bonusData, FindSpellChargesSlot(), and m_itemData.
Referenced by Guild::_SendBankContentUpdate(), Spell::CheckItems(), GetSellPrice(), WorldPackets::Mail::MailAttachedItem::MailAttachedItem(), Spell::TakeCastItem(), and Spell::TakeReagents().
|
inline |
Definition at line 339 of file Item.h.
Referenced by Player::_SaveInventory(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleWrapItem(), AzeriteEmpoweredItem::SaveToDB(), and AzeriteItem::SaveToDB().
| ItemTemplate const * Item::GetTemplate | ( | ) | const |
Definition at line 1233 of file Item.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by Player::_ApplyAllItemMods(), Player::_ApplyAllLevelScaleItemMods(), Player::_ApplyItemBonuses(), Player::_ApplyItemMods(), Player::_ApplyWeaponDamage(), Player::_LoadItem(), Player::_RemoveAllItemMods(), Player::_SaveInventory(), AddItemsSetItem(), Player::AddQuestAndCheckCompletion(), Player::ApplyEnchantment(), Player::ApplyEquipCooldown(), Player::ApplyItemEquipSpell(), Player::ApplyItemLootedSpell(), Player::ApplyItemObtainSpells(), Player::AutoUnequipOffhandIfNeed(), CalculateDurabilityRepairCost(), Player::CanBankItem(), Player::CanEquipItem(), Player::CanEquipUniqueItem(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), Player::CanTitanGrip(), CanTransmogrifyItemWithItem(), Player::CanUnequipItem(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CastItemUseSpell(), CheckArtifactRelicSlotUnlock(), Spell::CheckCast(), Spell::CheckItems(), ClearBonuses(), AzeriteEmpoweredItem::ClearSelectedAzeritePowers(), Player::DestroyItem(), WorldSession::DoLootRelease(), PlayerAI::DoRangedAttackIfReady(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectFeedPet(), Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), Player::EquipItem(), Player::FindEquipSlot(), AuctionsBucketKey::ForItem(), GemsFitSockets(), Unit::GetAPMultiplier(), GetBuyPrice(), Player::GetCraftingReagentItemsToDeposit(), GetDisenchantLootId(), GetDisenchantSkillRequired(), Player::GetItemCount(), GetItemLevel(), GetItemStatValue(), GetNameForLocaleIdx(), GetSellPrice(), Player::GetShield(), GetSkill(), Spell::GetSpellCastDataAmmo(), Unit::GetUnitBlockChance(), Player::GetUseableItemByPos(), Player::GetWeaponForAttack(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleDestroyItemOpcode(), spell_gen_fishing::HandleDummy(), spell_sha_flametongue_weapon::HandleEffectHitTarget(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleReadItem(), WorldSession::HandleSendMail(), WorldSession::HandleSocketGems(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleWrapItem(), Player::HasGemWithLimitCategoryEquipped(), Player::HasItemTotemCategory(), IsArtifactDisabled(), IsFitToSpellRequirements(), IsLimitedToAnotherMapOrZone(), ConditionMgr::IsPlayerMeetingCondition(), Player::IsTwoHandUsed(), Player::IsUsingTwoHandedWeaponInOneHand(), IsValidTransmogrificationTarget(), LoadAdditionalDataFromDB(), LoadArtifactData(), Bag::LoadFromDB(), LoadFromDB(), Guild::BankMoveItemData::LogAction(), WorldSession::moveItems(), Player::ProcessItemCast(), Player::RemoveItem(), Player::RemoveItemFromBuyBackSlot(), RemoveItemsSetItem(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), SaveToDB(), BlackMarketMgr::SendAuctionWonMail(), Player::SendNewItem(), Player::SetRegularAttackTime(), Player::SetVisibleItemSlot(), Player::StoreNewItem(), Spell::SummonGuardian(), Player::SwapItem(), Spell::TakeCastItem(), Spell::TakeReagents(), Player::UpdateAverageItemLevelTotal(), Player::UpdateDamageDoneMods(), UpdateDuration(), and Player::UpdateItemDuration().
| uint32 Item::GetTotalPurchasedArtifactPowers | ( | ) | const |
Definition at line 2743 of file Item.cpp.
References m_itemData.
Referenced by GetTotalUnlockedArtifactPowers(), WorldSession::HandleArtifactAddPower(), and WorldSession::HandleConfirmArtifactRespec().
| uint32 Item::GetTotalUnlockedArtifactPowers | ( | ) | const |
Definition at line 2720 of file Item.cpp.
References GetModifier(), GetTotalPurchasedArtifactPowers(), ITEM_MODIFIER_ARTIFACT_TIER, m_itemData, MAX_ARTIFACT_TIER, and sArtifactLevelXPGameTable.
Referenced by CriteriaHandler::ModifierSatisfied().
|
finalprotectedvirtual |
Reimplemented from BaseEntity.
Definition at line 1799 of file Item.cpp.
References BaseEntity::GetGUID(), GetOwnerGUID(), UF::None, and UF::Owner.
Referenced by BuildValuesUpdateForPlayerWithMask(), AzeriteEmpoweredItem::BuildValuesUpdateForPlayerWithMask(), AzeriteItem::BuildValuesUpdateForPlayerWithMask(), and Bag::BuildValuesUpdateForPlayerWithMask().
Definition at line 2559 of file Item.cpp.
References AppearanceModifierSlotBySpec, Player::GetActiveTalentGroup(), GetAppearanceModId(), GetModifier(), ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS, and sItemModifiedAppearanceStore.
Referenced by CriteriaHandler::ModifierSatisfied(), and Player::SetVisibleItemSlot().
Definition at line 2593 of file Item.cpp.
References Player::GetActiveTalentGroup(), GetEnchantmentId(), GetModifier(), IllusionModifierSlotBySpec, ITEM_MODIFIER_ENCHANT_ILLUSION_ALL_SPECS, and PERM_ENCHANTMENT_SLOT.
Referenced by GetVisibleItemVisual().
Definition at line 2547 of file Item.cpp.
References AppearanceModifierSlotBySpec, Player::GetActiveTalentGroup(), Object::GetEntry(), GetModifier(), ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS, and sItemModifiedAppearanceStore.
Referenced by Player::SetVisibleItemSlot().
Definition at line 2605 of file Item.cpp.
References GetVisibleEnchantmentId(), and sSpellItemEnchantmentStore.
Referenced by Player::ApplyEnchantment(), and Player::SetVisibleItemSlot().
Definition at line 2571 of file Item.cpp.
References AppearanceModifierSlotBySpec, Player::GetActiveTalentGroup(), GetItemModifiedAppearance(), GetModifier(), and ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS.
Referenced by Player::SetVisibleItemSlot().
Definition at line 2584 of file Item.cpp.
References Player::GetActiveTalentGroup(), GetModifier(), ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_ALL_SPECS, and SecondaryAppearanceModifierSlotBySpec.
Referenced by Player::SetVisibleItemSlot().
Definition at line 2847 of file Item.cpp.
References WorldPackets::Artifact::ArtifactXpGain::Amount, WorldPackets::Artifact::ArtifactXpGain::ArtifactGUID, EarnArtifactXP, BaseEntity::GetGUID(), GetModifier(), GetOwner(), ITEM_CHANGED, ITEM_MODIFIER_ARTIFACT_KNOWLEDGE_LEVEL, m_itemData, sArtifactKnowledgeMultiplierGameTable, Player::SendDirectMessage(), SetArtifactXP(), SetState(), Player::UpdateCriteria(), and WorldPackets::Artifact::ArtifactXpGain::Write().
| bool Item::HasEnchantRequiredSkill | ( | Player const * | player | ) | const |
Definition at line 1422 of file Item.cpp.
References GetEnchantmentId(), Player::GetSkillValue(), MAX_ENCHANTMENT_SLOT, PERM_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
|
inlineoverridevirtual |
|
inline |
Definition at line 223 of file Item.h.
Referenced by Player::CanStoreItem(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InSpecificSlot(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleRemoveNewItem(), and Player::SwapItem().
|
inline |
|
inlineoverridevirtual |
Definition at line 2698 of file Item.cpp.
References AddArtifactPower(), ARTIFACT_POWER_FLAG_FIRST, ArtifactPowerData::ArtifactPowerId, ArtifactPowerData::CurrentRankWithBonus, m_itemData, ArtifactPowerData::PurchasedRank, and sDB2Manager.
Referenced by Create(), WorldSession::HandleArtifactAddPower(), and LoadArtifactData().
| bool Item::IsArtifactDisabled | ( | ) | const |
Definition at line 2650 of file Item.cpp.
References GetTemplate(), and sArtifactStore.
Referenced by Player::ApplyArtifactPowers(), WorldSession::HandleArtifactAddPower(), and WorldSession::HandleConfirmArtifactRespec().
|
inline |
Definition at line 270 of file Item.h.
References BaseEntity::GetTypeId(), and TYPEID_AZERITE_EMPOWERED_ITEM.
Referenced by Spell::EffectRespecAzeriteEmpoweredItem(), and WorldSession::HandleAzeriteEmpoweredItemViewed().
|
inline |
Definition at line 269 of file Item.h.
References BaseEntity::GetTypeId(), and TYPEID_AZERITE_ITEM.
|
inline |
Definition at line 268 of file Item.h.
References INVTYPE_BAG.
Referenced by Player::CanBankItem(), CanBeTraded(), Player::CanEquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleWrapItem(), and Player::SwapItem().
|
inline |
Definition at line 235 of file Item.h.
References ITEM_FLAG2_BNET_ACCOUNT_TRADE_OK.
Referenced by WorldSession::HandleSendMail().
| bool Item::IsBindedNotWith | ( | Player const * | player | ) | const |
Definition at line 1769 of file Item.cpp.
References allowedGUIDs, BaseEntity::GetGUID(), GetOwnerGUID(), IsBOPTradeable(), IsBoundAccountWide(), and IsSoulBound().
Referenced by Player::CanBankItem(), Player::CanEquipItem(), Player::CanStoreItem(), Player::CanStoreItems(), Player::CanUseItem(), and WorldSession::HandleSetTradeItemOpcode().
|
inline |
Definition at line 265 of file Item.h.
References ITEM_FIELD_FLAG_BOP_TRADEABLE.
Referenced by Player::_LoadItem(), CollectionMgr::AddItemAppearance(), CanBeTraded(), IsBindedNotWith(), and Player::MoveItemToInventory().
|
inline |
Definition at line 234 of file Item.h.
References ITEM_FLAG_IS_BOUND_TO_ACCOUNT.
Referenced by CanBeTraded(), WorldSession::HandleSendMail(), and IsBindedNotWith().
| bool Item::IsBoundByEnchant | ( | ) | const |
Definition at line 1448 of file Item.cpp.
References GetEnchantmentId(), MAX_ENCHANTMENT_SLOT, PERM_ENCHANTMENT_SLOT, Soulbound, and sSpellItemEnchantmentStore.
Referenced by CanBeTraded().
|
inline |
Definition at line 273 of file Item.h.
Referenced by Player::_ApplyItemMods(), Player::ApplyEnchantment(), Spell::CheckItems(), Player::DurabilityRepair(), Player::EnchantmentFitsRequirements(), Aura::GetProcEffectMask(), Player::GetShield(), Unit::GetUnitBlockChance(), Player::GetWeaponForAttack(), and Player::SetRegularAttackTime().
|
inline |
Definition at line 271 of file Item.h.
Referenced by Player::CanBankItem().
| bool Item::IsEquipped | ( | ) | const |
Definition at line 1336 of file Item.cpp.
References EQUIPMENT_SLOT_END, IsInBag(), m_slot, PROFESSION_SLOT_END, and PROFESSION_SLOT_START.
Referenced by ApplyArtifactPowerEnchantmentBonuses(), Player::ApplyEnchantment(), Player::CanEquipUniqueItem(), Player::DurabilityPointsLoss(), Spell::EffectApplyEnchantIllusion(), Spell::EffectEnchantHeldItem(), Spell::EffectLearnAzeriteEssencePower(), Spell::EffectRespecAzeriteEmpoweredItem(), GetDebugInfo(), AzeriteItem::GiveXP(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleConfirmArtifactRespec(), WorldSession::HandleSocketGems(), WorldSession::HandleWrapItem(), and Player::ProcessItemCast().
| bool Item::IsFitToSpellRequirements | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 1477 of file Item.cpp.
References SpellInfo::EquippedItemClass, SpellInfo::EquippedItemInventoryTypeMask, SpellInfo::EquippedItemSubClassMask, ItemTemplate::GetClass(), ItemTemplate::GetInventoryType(), ItemTemplate::GetSubClass(), GetTemplate(), SpellInfo::HasEffect(), ItemTemplate::HasFlag(), INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, ITEM_FLAG3_CAN_STORE_ENCHANTS, SPELL_EFFECT_ENCHANT_ITEM, SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC, and SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY.
Referenced by Player::CheckAttackFitToAuraRequirement(), Spell::CheckItems(), Aura::GetProcEffectMask(), Player::HasItemFitToSpellRequirements(), and SpellInfo::IsItemFitToSpellRequirements().
|
inline |
Definition at line 303 of file Item.h.
Referenced by IsEquipped().
|
inline |
Definition at line 278 of file Item.h.
Referenced by Player::CanStoreItems(), and Player::HasItemCount().
|
inline |
Definition at line 341 of file Item.h.
Referenced by debug_commandscript::HandleDebugGetItemStateCommand().
Definition at line 1692 of file Item.cpp.
References ItemTemplate::GetArea(), ItemTemplate::GetMap(), and GetTemplate().
Referenced by Player::_LoadItem().
|
inline |
Definition at line 267 of file Item.h.
References ITEM_FIELD_FLAG_UNLOCKED.
Referenced by Spell::CheckCast(), WorldSession::HandleOpenItemOpcode(), and WorldPackets::Mail::MailAttachedItem::MailAttachedItem().
| bool Item::IsNotEmptyBag | ( | ) | const |
Definition at line 576 of file Item.cpp.
References ToBag().
Referenced by Player::CanBankItem(), Player::CanSellItemToVendor(), Player::CanStoreItem(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InInventorySlots(), Player::CanStoreItem_InSpecificSlot(), Player::CanUnequipItem(), Player::DestroyItem(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), and WorldSession::HandleSendMail().
|
inline |
Definition at line 264 of file Item.h.
References ITEM_FIELD_FLAG_REFUNDABLE.
Referenced by Player::_LoadItem(), CollectionMgr::AddItemAppearance(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), Player::RefundItem(), Player::SendRefundInfo(), and SetNotRefundable().
| bool Item::IsRefundExpired | ( | ) | const |
Definition at line 1958 of file Item.cpp.
References GameTime::GetGameTime(), HOUR, and m_itemData.
Referenced by Player::_LoadItem(), Player::RefundItem(), and Player::SendRefundInfo().
|
inline |
Definition at line 233 of file Item.h.
References ITEM_FIELD_FLAG_SOULBOUND.
Referenced by Player::_LoadItem(), CollectionMgr::AddItemAppearance(), CanBeTraded(), Guild::BankMoveItemData::CanStore(), WorldSession::HandleSendMail(), WorldSession::HandleWrapItem(), IsBindedNotWith(), LoadFromDB(), Player::ProcessItemCast(), and Player::StoreNewItem().
| bool Item::IsValidTransmogrificationTarget | ( | ) | const |
Definition at line 1995 of file Item.cpp.
References ItemTemplate::GetClass(), ItemTemplate::GetSubClass(), GetTemplate(), ItemTemplate::HasFlag(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_FLAG2_NO_ALTER_ITEM_VISUAL, and ITEM_SUBCLASS_WEAPON_FISHING_POLE.
Referenced by CanTransmogrifyItemWithItem().
|
inline |
Definition at line 350 of file Item.h.
Referenced by Spell::CheckItems(), and Spell::EffectEnchantItemPerm().
|
inline |
Definition at line 266 of file Item.h.
References ITEM_FIELD_FLAG_WRAPPED.
Referenced by Player::DestroyItem(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSendMail(), LoadFromDB(), and SaveToDB().
| void Item::LoadAdditionalDataFromDB | ( | Player const * | owner, |
| ItemAdditionalLoadInfo * | addionalData | ||
| ) |
Definition at line 1083 of file Item.cpp.
References ItemAdditionalLoadInfo::Artifact, ItemAdditionalLoadInfo::AzeriteEmpoweredItem, ItemAdditionalLoadInfo::AzeriteItem, GetTemplate(), LoadArtifactData(), ToAzeriteEmpoweredItem(), and ToAzeriteItem().
Referenced by Player::_LoadMailedItem().
| void Item::LoadArtifactData | ( | Player const * | owner, |
| uint64 | xp, | ||
| uint32 | artifactAppearanceId, | ||
| uint32 | artifactTier, | ||
| std::vector< ArtifactPowerData > & | powers | ||
| ) |
Definition at line 1098 of file Item.cpp.
References _bonusData, ARTIFACT_POWER_FLAG_SCALES_WITH_NUM_POWERS, UF::ItemData::ArtifactXP, CheckArtifactRelicSlotUnlock(), ArtifactPowerEntry::Flags, BonusData::GemRelicType, GetEnchantmentId(), GetTemplate(), ArtifactPowerEntry::ID, InitArtifactPowers(), ConditionMgr::IsPlayerMeetingCondition(), ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_ID, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_TYPE, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_PICKER, ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, ITEM_MODIFIER_ARTIFACT_TIER, ArtifactPowerEntry::Label, m_itemData, BaseEntity::m_values, MAX_ITEM_ENCHANTMENT_EFFECTS, UF::UpdateFieldHolder::ModifyValue(), ArtifactPowerPickerEntry::PlayerConditionID, sArtifactAppearanceStore, sArtifactPowerPickerStore, sArtifactPowerStore, SetAppearanceModId(), SetArtifactPower(), SetModifier(), BaseEntity::SetUpdateFieldValue(), SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_3, and sSpellItemEnchantmentStore.
Referenced by LoadAdditionalDataFromDB().
|
virtual |
Reimplemented in Bag.
Definition at line 907 of file Item.cpp.
References _bonusData, BaseEntity::_Create(), BIND_NONE, CHAR_UPD_ITEM_INSTANCE_ON_LOAD, CharacterDatabase, UF::ItemEnchantment::Charges, ItemDynamicFieldGems::Context, UF::ItemEnchantment::Duration, BonusData::EffectCount, UF::ItemData::Enchantment, GetBonding(), ItemTemplate::GetDuration(), Object::GetEntry(), BaseEntity::GetGUID(), GetTemplate(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), UF::ItemEnchantment::ID, BonusData::Initialize(), ObjectGuid::IsEmpty(), IsSoulBound(), IsWrapped(), ITEM_FIELD_FLAG_CHILD, ITEM_FIELD_FLAG_SOULBOUND, ITEM_MODIFIER_ARTIFACT_KNOWLEDGE_LEVEL, ITEM_MODIFIER_BATTLE_PET_BREED_DATA, ITEM_MODIFIER_BATTLE_PET_DISPLAY_ID, ITEM_MODIFIER_BATTLE_PET_LEVEL, ITEM_MODIFIER_BATTLE_PET_SPECIES_ID, ITEM_MODIFIER_ENCHANT_ILLUSION_ALL_SPECS, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_1, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_2, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_3, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_4, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_5, ITEM_MODIFIER_TIMEWALKER_LEVEL, ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_1, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_2, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_3, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_4, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_5, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_ALL_SPECS, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_1, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_2, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_3, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_4, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_5, ItemId, ItemDynamicFieldGems::ItemId, m_itemData, m_randomBonusListId, BaseEntity::m_values, MAX_ENCHANTMENT_OFFSET, MAX_ENCHANTMENT_SLOT, MAX_GEM_SOCKETS, ItemTemplate::MaxDurability, UF::ItemData::MaxDurability, UF::UpdateFieldHolder::ModifyValue(), RemoveItemFlag(), ReplaceAllItemFlags(), SetBonuses(), SetContext(), SetCount(), SetCreatePlayedTime(), SetCreateTime(), SetCreator(), SetDurability(), Object::SetEntry(), SetExpiration(), SetGem(), SetGiftCreator(), SetModifier(), Object::SetObjectScale(), SetOwnerGUID(), SetText(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), BaseEntity::SetUpdateFieldValue(), UF::ItemData::SpellCharges, TC_LOG_ERROR, and Trinity::Tokenize().
Referenced by Player::_LoadItem(), Player::_LoadMailedItem(), AuctionHouseMgr::LoadAuctions(), Bag::LoadFromDB(), and Guild::BankTab::LoadItemFromDB().
|
overridevirtual |
|
inline |
Definition at line 225 of file Item.h.
References UF::ItemData::DynamicFlags, flags, m_itemData, and BaseEntity::RemoveUpdateFieldFlagValue().
Referenced by Player::_LoadItem(), ClearSoulboundTradeable(), WorldSession::HandleRemoveNewItem(), LoadFromDB(), and SetNotRefundable().
|
inline |
Definition at line 230 of file Item.h.
References flags, m_itemData, BaseEntity::RemoveUpdateFieldFlagValue(), and UF::ItemData::ZoneFlags.
Referenced by Player::RemoveItem().
|
inline |
Definition at line 226 of file Item.h.
References UF::ItemData::DynamicFlags, flags, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by CloneItem(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleWrapItem(), and LoadFromDB().
|
inline |
Definition at line 231 of file Item.h.
References flags, m_itemData, BaseEntity::SetUpdateFieldValue(), and UF::ItemData::ZoneFlags.
| void Item::SaveRefundDataToDB | ( | ) |
Definition at line 1900 of file Item.cpp.
References CHAR_DEL_ITEM_REFUND_INSTANCE, CHAR_INS_ITEM_REFUND_INSTANCE, CharacterDatabase, BaseEntity::GetGUID(), GetPaidExtendedCost(), GetPaidMoney(), GetRefundRecipient(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt64().
Referenced by Player::_StoreOrEquipNewItem().
|
virtual |
Reimplemented in AzeriteEmpoweredItem, AzeriteItem, and Bag.
Definition at line 639 of file Item.cpp.
References _bonusData, CHAR_DEL_GIFT, CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_ITEM_INSTANCE_ARTIFACT, CHAR_DEL_ITEM_INSTANCE_ARTIFACT_POWERS, CHAR_DEL_ITEM_INSTANCE_GEMS, CHAR_DEL_ITEM_INSTANCE_MODIFIERS, CHAR_DEL_ITEM_INSTANCE_TRANSMOG, CHAR_INS_ITEM_INSTANCE_ARTIFACT, CHAR_INS_ITEM_INSTANCE_ARTIFACT_POWERS, CHAR_INS_ITEM_INSTANCE_GEMS, CHAR_INS_ITEM_INSTANCE_MODIFIERS, CHAR_INS_ITEM_INSTANCE_TRANSMOG, CHAR_REP_ITEM_INSTANCE, CHAR_UPD_GIFT_OWNER, CHAR_UPD_ITEM_INSTANCE, CharacterDatabase, DoNotSaveToDB, BonusData::EffectCount, ItemTemplate::GetArtifactID(), GetBonusListIDs(), GetCount(), ObjectGuid::GetCounter(), GetCreator(), GetEnchantmentCharges(), GetEnchantmentDuration(), GetEnchantmentId(), Object::GetEntry(), SpellItemEnchantmentEntry::GetFlags(), GetGiftCreator(), BaseEntity::GetGUID(), GetModifier(), GetOwnerGUID(), GetTemplate(), IsWrapped(), ITEM_CHANGED, ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, ITEM_MODIFIER_ARTIFACT_KNOWLEDGE_LEVEL, ITEM_MODIFIER_ARTIFACT_TIER, ITEM_MODIFIER_BATTLE_PET_BREED_DATA, ITEM_MODIFIER_BATTLE_PET_DISPLAY_ID, ITEM_MODIFIER_BATTLE_PET_LEVEL, ITEM_MODIFIER_BATTLE_PET_SPECIES_ID, ITEM_MODIFIER_ENCHANT_ILLUSION_ALL_SPECS, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_1, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_2, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_3, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_4, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_5, ITEM_MODIFIER_TIMEWALKER_LEVEL, ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_1, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_2, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_3, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_4, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_5, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_ALL_SPECS, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_1, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_2, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_3, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_4, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_5, ITEM_NEW, ITEM_REMOVED, ITEM_UNCHANGED, m_gemScalingLevels, m_itemData, m_loot, m_randomBonusListId, m_text, MAX_ENCHANTMENT_SLOT, MAX_GEM_SOCKETS, PreparedStatementBase::setInt64(), SetState(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sLootItemStorage, sSpellItemEnchantmentStore, and uState.
Referenced by Player::_LoadItem(), Player::_LoadMailedItem(), Player::_SaveInventory(), Player::AutoUnequipOffhandIfNeed(), PlayerAchievementMgr::CompletedAchievement(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleWrapItem(), AzeriteEmpoweredItem::SaveToDB(), AzeriteItem::SaveToDB(), Bag::SaveToDB(), BlackMarketMgr::SendAuctionWonMail(), MailDraft::SendReturnToSender(), and Guild::BankTab::SetItem().
| void Item::SendTimeUpdate | ( | Player * | owner | ) |
Definition at line 1709 of file Item.cpp.
References WorldPackets::Item::ItemTimeUpdate::DurationLeft, BaseEntity::GetGUID(), WorldPackets::Item::ItemTimeUpdate::ItemGuid, m_itemData, Player::SendDirectMessage(), and WorldPackets::Item::ItemTimeUpdate::Write().
Referenced by Player::AddItemDurations().
| void Item::SendUpdateSockets | ( | ) |
Definition at line 1699 of file Item.cpp.
References BaseEntity::GetGUID(), GetOwner(), WorldPackets::Item::SocketGemsSuccess::Item, Player::SendDirectMessage(), and WorldPackets::Item::SocketGemsSuccess::Write().
Referenced by WorldSession::HandleSocketGems().
|
inline |
Definition at line 361 of file Item.h.
References UF::ItemData::ItemAppearanceModID, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by CopyArtifactDataFromParent(), Create(), WorldSession::HandleArtifactSetAppearance(), and LoadArtifactData().
| void Item::SetArtifactPower | ( | uint16 | artifactPowerId, |
| uint8 | purchasedRank, | ||
| uint8 | currentRankWithBonus | ||
| ) |
Definition at line 2683 of file Item.cpp.
References UF::ItemData::ArtifactPowers, UF::ArtifactPower::CurrentRankWithBonus, GetArtifactPowerIndex(), m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::ArtifactPower::PurchasedRank, and BaseEntity::SetUpdateFieldValue().
Referenced by WorldSession::HandleArtifactAddPower(), WorldSession::HandleConfirmArtifactRespec(), and LoadArtifactData().
|
inline |
Definition at line 453 of file Item.h.
References UF::ItemData::ArtifactXP, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by GiveArtifactXp(), WorldSession::HandleArtifactAddPower(), and WorldSession::HandleConfirmArtifactRespec().
|
inline |
Definition at line 216 of file Item.h.
References ITEM_FIELD_FLAG_SOULBOUND.
Referenced by Player::_StoreItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), Player::ProcessItemCast(), and Player::VisualizeItem().
| void Item::SetBonuses | ( | std::vector< int32 > | bonusListIDs | ) |
Definition at line 2628 of file Item.cpp.
References _bonusData, BonusData::AddBonusList(), BonusData::AppearanceModID, WorldPackets::Item::ItemBonusKey::BonusListIDs, GetBonusListIDs(), Object::GetEntry(), UF::ItemData::ItemAppearanceModID, UF::ItemData::ItemBonusKey, WorldPackets::Item::ItemBonusKey::ItemID, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by CloneItem(), CreateItem(), LoadFromDB(), and Player::StoreNewItem().
|
inline |
Definition at line 439 of file Item.h.
Referenced by Player::StoreNewItem().
|
inline |
Definition at line 206 of file Item.h.
References UF::ItemData::ContainedIn, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by Player::_StoreItem(), Create(), Bag::Create(), Player::DestroyItem(), Player::RemoveItem(), Guild::BankTab::SetItem(), Bag::StoreItem(), and Player::VisualizeItem().
|
inline |
Definition at line 301 of file Item.h.
Referenced by Player::_StoreItem(), Bag::RemoveItem(), Bag::StoreItem(), and Player::VisualizeItem().
|
inline |
Definition at line 457 of file Item.h.
References UF::ItemData::Context, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), Bag::Create(), and LoadFromDB().
| void Item::SetCount | ( | uint32 | value | ) |
Definition at line 1367 of file Item.cpp.
References BaseEntity::GetGUID(), GetOwner(), m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UF::ItemData::StackCount, and TRADE_SLOT_INVALID.
Referenced by Guild::BankMoveItemData::_StoreItem(), Player::_StoreItem(), Create(), Bag::Create(), CreateItem(), Player::DestroyItemCount(), Spell::EffectScriptEffect(), Player::EquipItem(), WorldSession::HandleAuctionSellCommodity(), LoadFromDB(), Player::SellItemToVendor(), Player::SplitItem(), and Player::SwapItem().
|
inline |
Definition at line 327 of file Item.h.
References UF::ItemData::CreatePlayedTime, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), LoadFromDB(), WorldSession::moveItems(), and Player::StoreNewItem().
|
inline |
Definition at line 328 of file Item.h.
References UF::ItemData::CreateTime, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), and LoadFromDB().
|
inline |
Definition at line 208 of file Item.h.
References UF::ItemData::Creator, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by CloneItem(), WorldSession::HandleMailCreateTextItem(), and LoadFromDB().
|
inline |
Definition at line 274 of file Item.h.
References UF::ItemData::Durability, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), Bag::Create(), Player::DurabilityPointsLoss(), Player::DurabilityRepair(), and LoadFromDB().
| void Item::SetEnchantment | ( | EnchantmentSlot | slot, |
| uint32 | id, | ||
| uint32 | duration, | ||
| uint32 | charges, | ||
| ObjectGuid | caster = ObjectGuid::Empty |
||
| ) |
Definition at line 1511 of file Item.cpp.
References ApplyArtifactPowerEnchantmentBonuses(), UF::ItemEnchantment::Charges, DoNotLog, UF::ItemEnchantment::Duration, ObjectGuid::Empty, UF::ItemData::Enchantment, GetEnchantmentCharges(), GetEnchantmentDuration(), GetEnchantmentId(), Object::GetEntry(), BaseEntity::GetGUID(), GetOwner(), GetOwnerGUID(), Player::GetSession(), UF::ItemEnchantment::ID, ITEM_CHANGED, m_itemData, BaseEntity::m_values, MAX_INSPECTED_ENCHANTMENT_SLOT, UF::UpdateFieldHolder::ModifyValue(), WorldSession::SendEnchantmentLog(), SetState(), BaseEntity::SetUpdateFieldValue(), and sSpellItemEnchantmentStore.
Referenced by Spell::EffectEnchantHeldItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectSummonChangeItem(), and WorldSession::HandleSocketGems().
| void Item::SetEnchantmentCharges | ( | EnchantmentSlot | slot, |
| uint32 | charges | ||
| ) |
Definition at line 1549 of file Item.cpp.
References UF::ItemEnchantment::Charges, UF::ItemData::Enchantment, GetEnchantmentCharges(), GetOwner(), ITEM_CHANGED, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SetState(), and BaseEntity::SetUpdateFieldValue().
| void Item::SetEnchantmentDuration | ( | EnchantmentSlot | slot, |
| uint32 | duration, | ||
| Player * | owner | ||
| ) |
Definition at line 1539 of file Item.cpp.
References UF::ItemEnchantment::Duration, UF::ItemData::Enchantment, GetEnchantmentDuration(), ITEM_CHANGED, m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SetState(), and BaseEntity::SetUpdateFieldValue().
Referenced by Player::RemoveEnchantmentDurations().
|
inline |
Definition at line 213 of file Item.h.
References UF::ItemData::Expiration, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by CloneItem(), Create(), LoadFromDB(), and UpdateDuration().
| void Item::SetFixedLevel | ( | uint8 | level | ) |
Definition at line 2882 of file Item.cpp.
References _bonusData, BonusData::ContentTuningId, GetModifier(), BonusData::HasFixedLevel, ITEM_MODIFIER_TIMEWALKER_LEVEL, BonusData::PlayerLevelToItemLevelCurveId, sDB2Manager, and SetModifier().
Referenced by CloneItem(), and Player::StoreNewItem().
| void Item::SetGem | ( | uint16 | slot, |
| ItemDynamicFieldGems const * | gem, | ||
| uint32 | gemScalingLevel | ||
| ) |
Definition at line 1577 of file Item.cpp.
References _bonusData, BonusData::AddBonusList(), ASSERT, ItemDynamicFieldGems::BonusListIDs, UF::SocketedGem::BonusListIDs, ItemDynamicFieldGems::Context, UF::SocketedGem::Context, CURVE_ID_ARTIFACT_RELIC_ITEM_LEVEL_BONUS, BonusData::GemItemLevelBonus, BonusData::GemRelicType, UF::ItemData::Gems, ItemBonusMgr::GetItemBonuses(), ItemBonusMgr::GetItemBonusListForItemLevelDelta(), BonusData::Initialize(), ITEM_BONUS_ITEM_LEVEL, ITEM_ENCHANTMENT_TYPE_BONUS_LIST_CURVE, ITEM_ENCHANTMENT_TYPE_BONUS_LIST_ID, ItemDynamicFieldGems::ItemId, UF::SocketedGem::ItemID, BonusData::ItemLevel, BonusData::ItemLevelBonus, m_gemScalingLevels, m_itemData, BaseEntity::m_values, MAX_GEM_SOCKETS, MAX_ITEM_ENCHANTMENT_EFFECTS, UF::UpdateFieldHolder::ModifyValue(), BonusData::PlayerLevelToItemLevelCurveId, BonusData::RelicType, sDB2Manager, BaseEntity::SetUpdateFieldValue(), sGemPropertiesStore, sObjectMgr, and sSpellItemEnchantmentStore.
Referenced by WorldSession::HandleSocketGems(), and LoadFromDB().
|
inline |
Definition at line 210 of file Item.h.
References UF::ItemData::GiftCreator, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by CloneItem(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleWrapItem(), and LoadFromDB().
|
inline |
Definition at line 277 of file Item.h.
Referenced by clearAcceptTradeMode(), and setAcceptTradeMode().
|
inline |
Definition at line 224 of file Item.h.
References UF::ItemData::DynamicFlags, flags, m_itemData, and BaseEntity::SetUpdateFieldFlagValue().
Referenced by Player::_StoreOrEquipNewItem(), Spell::EffectOpenLock(), WorldSession::HandleAzeriteEmpoweredItemViewed(), WorldSession::HandleMailCreateTextItem(), SetSoulboundTradeable(), and Player::StoreNewItem().
| void Item::SetItemRandomBonusList | ( | ItemRandomBonusListId | bonusListId | ) |
Definition at line 1250 of file Item.cpp.
References AddBonuses().
Referenced by AuctionBotSeller::AddNewAuctions(), CloneItem(), and Player::StoreNewItem().
|
inline |
Definition at line 229 of file Item.h.
References flags, m_itemData, BaseEntity::SetUpdateFieldFlagValue(), and UF::ItemData::ZoneFlags.
Referenced by Player::EquipItem(), and Player::QuickEquipItem().
|
inline |
Definition at line 275 of file Item.h.
References m_itemData, UF::ItemData::MaxDurability, and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), Bag::Create(), and WorldSession::HandleOpenWrappedItemCallback().
| void Item::SetModifier | ( | ItemModifier | modifier, |
| uint32 | value | ||
| ) |
Definition at line 2515 of file Item.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), m_itemData, BaseEntity::m_values, UF::ItemData::Modifiers, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::RemoveDynamicUpdateFieldValue(), BaseEntity::SetUpdateFieldValue(), UF::ItemMod::Type, UF::ItemMod::Value, and UF::ItemModList::Values.
Referenced by BattlePets::BattlePetMgr::CageBattlePet(), CopyArtifactDataFromParent(), Create(), Spell::EffectApplyEnchantIllusion(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleTransmogrifyItems(), LoadArtifactData(), LoadFromDB(), and SetFixedLevel().
| void Item::SetNotRefundable | ( | Player * | owner, |
| bool | changestate = true, |
||
| CharacterDatabaseTransaction * | trans = nullptr, |
||
| bool | addToCollection = true |
||
| ) |
Definition at line 1929 of file Item.cpp.
References CollectionMgr::AddItemAppearance(), DeleteRefundDataFromDB(), Player::DeleteRefundReference(), ObjectGuid::Empty, WorldSession::GetCollectionMgr(), BaseEntity::GetGUID(), Player::GetSession(), IsRefundable(), ITEM_CHANGED, ITEM_FIELD_FLAG_REFUNDABLE, WorldPackets::Item::ItemExpirePurchaseRefund::ItemGUID, RemoveItemFlag(), Player::SendDirectMessage(), SetPaidExtendedCost(), SetPaidMoney(), SetRefundRecipient(), SetState(), and WorldPackets::Item::ItemExpirePurchaseRefund::Write().
Referenced by Player::_StoreItem(), Player::DestroyItem(), Player::EquipItem(), WorldSession::HandleTransmogrifyItems(), Player::RefundItem(), and Player::SendRefundInfo().
|
inline |
Definition at line 204 of file Item.h.
References m_itemData, UF::ItemData::Owner, and BaseEntity::SetUpdateFieldValue().
Referenced by Player::_StoreItem(), Create(), Bag::Create(), Player::EquipItem(), LoadFromDB(), Player::MoveItemToInventory(), BlackMarketMgr::SendAuctionWonMail(), Guild::BankTab::SetItem(), Bag::StoreItem(), and Player::VisualizeItem().
|
inline |
Definition at line 377 of file Item.h.
Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), and SetNotRefundable().
|
inline |
Definition at line 376 of file Item.h.
Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), and SetNotRefundable().
|
inline |
Definition at line 459 of file Item.h.
References UF::ItemData::Enchantment, UF::ItemEnchantment::ID, m_itemData, and BaseEntity::SetUpdateFieldValue().
Referenced by WorldSession::HandlePetitionBuy().
|
inline |
Definition at line 460 of file Item.h.
References UF::ItemEnchantment::Duration, UF::ItemData::Enchantment, m_itemData, and BaseEntity::SetUpdateFieldValue().
|
inline |
Definition at line 375 of file Item.h.
Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), and SetNotRefundable().
|
inline |
Definition at line 299 of file Item.h.
Referenced by Player::_StoreItem(), Player::DestroyItem(), Player::RemoveItem(), Bag::StoreItem(), and Player::VisualizeItem().
| void Item::SetSoulboundTradeable | ( | GuidSet const & | allowedLooters | ) |
Definition at line 1963 of file Item.cpp.
References allowedGUIDs, ITEM_FIELD_FLAG_BOP_TRADEABLE, and SetItemFlag().
Referenced by Player::_LoadItem(), and Player::StoreNewItem().
| void Item::SetSpellCharges | ( | ItemEffectEntry const * | effect, |
| int32 | value | ||
| ) |
Definition at line 632 of file Item.cpp.
References _bonusData, FindSpellChargesSlot(), m_itemData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), and UF::ItemData::SpellCharges.
Referenced by Create(), and Spell::TakeCastItem().
| void Item::SetState | ( | ItemUpdateState | state, |
| Player * | forplayer = nullptr |
||
| ) |
Definition at line 1258 of file Item.cpp.
References AddItemToUpdateQueueOf, Player::DeleteRefundReference(), BaseEntity::GetGUID(), ITEM_NEW, ITEM_REMOVED, ITEM_UNCHANGED, RemoveItemFromUpdateQueueOf, uQueuePos, and uState.
Referenced by Player::_StoreItem(), ClearEnchantment(), ClearSoulboundTradeable(), Player::DestroyItem(), Player::DestroyItemCount(), Player::DurabilityPointsLoss(), Player::DurabilityRepair(), Spell::EffectApplyEnchantIllusion(), Spell::EffectLearnAzeriteEssencePower(), Spell::EffectOpenLock(), Spell::EffectRespecAzeriteEmpoweredItem(), Player::EquipItem(), GiveArtifactXp(), AzeriteItem::GiveXP(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleAzeriteEmpoweredItemViewed(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleAzeriteEssenceUnlockMilestone(), WorldSession::HandleConfirmArtifactRespec(), WorldSession::HandleMailTakeItem(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandlePetitionBuy(), WorldSession::HandleRemoveNewItem(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleWrapItem(), Player::MoveItemToInventory(), Player::ProcessItemCast(), Player::RemoveItemFromBuyBackSlot(), SaveToDB(), Player::SellItemToVendor(), SetEnchantment(), SetEnchantmentCharges(), SetEnchantmentDuration(), SetNotRefundable(), Player::SplitItem(), Player::SwapItem(), Spell::TakeCastItem(), UpdateDuration(), and Player::VisualizeItem().
|
inline |
Definition at line 321 of file Item.h.
Referenced by WorldSession::HandleMailCreateTextItem(), and LoadFromDB().
|
inline |
Definition at line 261 of file Item.h.
Referenced by Player::ApplyAzeritePowers(), Spell::CheckItems(), Spell::EffectRespecAzeriteEmpoweredItem(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), and LoadAdditionalDataFromDB().
|
inline |
|
inline |
Definition at line 259 of file Item.h.
Referenced by Player::ActivateTalentGroup(), Player::ApplyAzeritePowers(), Spell::EffectLearnAzeriteEssencePower(), GetItemLevel(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleAzeriteEssenceUnlockMilestone(), WorldSession::HandleInspectOpcode(), WorldPackets::Inspect::InspectItemData::InspectItemData(), LoadAdditionalDataFromDB(), CriteriaHandler::ModifierSatisfied(), and Player::UpdateAverageItemLevelEquipped().
|
inline |
|
inline |
Definition at line 257 of file Item.h.
Referenced by Player::_LoadInventory(), CanBeTraded(), Player::GetBagByPos(), debug_commandscript::HandleDebugGetItemStateCommand(), IsNotEmptyBag(), and Player::SwapItem().
Definition at line 583 of file Item.cpp.
References Player::DestroyItem(), GetBagSlot(), Object::GetEntry(), GetSlot(), GetTemplate(), ITEM_CHANGED, m_itemData, SetExpiration(), SetState(), sScriptMgr, and TC_LOG_DEBUG.
Referenced by Player::UpdateItemDuration().
Definition at line 1289 of file Item.cpp.
Referenced by SetState().
Definition at line 1310 of file Item.cpp.
Referenced by SetState().
|
protected |
Definition at line 467 of file Item.h.
Referenced by AddBonuses(), ApplyArtifactPowerEnchantmentBonuses(), ClearBonuses(), AzeriteEmpoweredItem::ClearSelectedAzeritePowers(), CopyArtifactDataFromParent(), Create(), Bag::Create(), GetDisenchantLootId(), GetDisenchantSkillRequired(), GetItemLevel(), GetItemModifiedAppearance(), GetItemStatValue(), GetNameForLocaleIdx(), AzeriteEmpoweredItem::GetRequiredAzeriteLevelForTier(), GetRequiredLevel(), GetSpellCharges(), Item(), LoadArtifactData(), LoadFromDB(), SaveToDB(), SetBonuses(), SetFixedLevel(), SetGem(), AzeriteEmpoweredItem::SetSelectedAzeritePower(), and SetSpellCharges().
|
private |
Definition at line 479 of file Item.h.
Referenced by ClearSoulboundTradeable(), IsBindedNotWith(), and SetSoulboundTradeable().
|
private |
|
private |
Definition at line 472 of file Item.h.
Referenced by GetBagSlot(), and Item().
|
private |
Definition at line 482 of file Item.h.
Referenced by Item(), SaveToDB(), and SetGem().
| UF::UpdateField<UF::ItemData, uint32(WowCS::EntityFragment::CGObject), TYPEID_ITEM> Item::m_itemData |
Definition at line 464 of file Item.h.
Referenced by Guild::_SendBankContentUpdate(), AddArtifactPower(), AddBonuses(), Player::AddItemDurations(), ApplyArtifactPowerEnchantmentBonuses(), Player::ApplyArtifactPowers(), AzeriteEmpoweredItem::BuildValuesCreate(), AzeriteItem::BuildValuesCreate(), Bag::BuildValuesCreate(), BuildValuesCreate(), AzeriteEmpoweredItem::BuildValuesUpdate(), AzeriteItem::BuildValuesUpdate(), Bag::BuildValuesUpdate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), AzeriteEmpoweredItem::BuildValuesUpdateForPlayerWithMask(), AzeriteItem::BuildValuesUpdateForPlayerWithMask(), Bag::BuildValuesUpdateForPlayerWithMask(), AzeriteItem::BuildValuesUpdateWithFlag(), BuildValuesUpdateWithFlag(), CalculateDurabilityRepairCost(), Player::CanEquipUniqueItem(), CheckSoulboundTradeExpire(), ClearBonuses(), ClearEnchantment(), ClearValuesChangesMask(), CloneItem(), Player::DurabilityLoss(), Player::DurabilityPointsLoss(), Player::DurabilityRepair(), Spell::EffectSummonChangeItem(), Player::EnchantmentFitsRequirements(), GemsFitSockets(), GetArtifactPower(), GetArtifactPowerIndex(), GetGem(), GetGemCountWithID(), GetGemCountWithLimitCategory(), GetModifier(), GetPlayedTime(), GetSpellCharges(), GetTotalPurchasedArtifactPowers(), GetTotalUnlockedArtifactPowers(), GiveArtifactXp(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleConfirmArtifactRespec(), WorldSession::HandleSendMail(), WorldSession::HandleWrapItem(), InitArtifactPowers(), WorldPackets::Item::ItemInstance::Initialize(), WorldPackets::Inspect::InspectItemData::InspectItemData(), IsRefundExpired(), LoadArtifactData(), LoadFromDB(), WorldPackets::Mail::MailAttachedItem::MailAttachedItem(), WorldSession::moveItems(), RemoveItemFlag(), RemoveItemZoneFlag(), ReplaceAllItemFlags(), ReplaceAllItemZoneFlags(), SaveToDB(), Player::SendRefundInfo(), SendTimeUpdate(), SetAppearanceModId(), SetArtifactPower(), SetArtifactXP(), SetBonuses(), SetContainedIn(), SetContext(), SetCount(), SetCreatePlayedTime(), SetCreateTime(), SetCreator(), SetDurability(), SetEnchantment(), SetEnchantmentCharges(), SetEnchantmentDuration(), SetExpiration(), SetGem(), SetGiftCreator(), SetItemFlag(), SetItemZoneFlag(), SetMaxDurability(), SetModifier(), SetOwnerGUID(), SetPetitionId(), SetPetitionNumSignatures(), SetSpellCharges(), Player::SwapItem(), and UpdateDuration().
| std::unique_ptr<Loot> Item::m_loot |
Definition at line 334 of file Item.h.
Referenced by DeleteFromDB(), WorldSession::DoLootRelease(), Spell::EffectDisEnchant(), Spell::EffectMilling(), Spell::EffectProspecting(), WorldSession::HandleOpenItemOpcode(), LootItemStorage::LoadStoredLoot(), and SaveToDB().
| bool Item::m_lootGenerated |
Definition at line 335 of file Item.h.
Referenced by CanBeMergedPartlyWith(), CanBeTraded(), Player::CanStoreItems(), Player::CanTakeMoreSimilarItems(), WorldSession::DoLootRelease(), WorldSession::HandleOpenItemOpcode(), Item(), LootItemStorage::LoadStoredLoot(), and Player::SplitItem().
|
private |
|
private |
Definition at line 480 of file Item.h.
Referenced by CloneItem(), Item(), LoadFromDB(), and SaveToDB().
|
private |
|
private |
Definition at line 471 of file Item.h.
Referenced by IsEquipped(), and Item().
|
private |
Definition at line 470 of file Item.h.
Referenced by SaveToDB().
|
private |
Definition at line 474 of file Item.h.
Referenced by Item(), and SetState().
|
private |
Definition at line 473 of file Item.h.
Referenced by Item(), SaveToDB(), and SetState().