![]() |
TrinityCore
|
#include <ItemTemplate.h>
Static Public Member Functions | |
| static std::size_t | CalculateItemSpecBit (ChrSpecializationEntry const *spec) |
Public Attributes | |
| ItemEntry const * | BasicData |
| ItemSparseEntry const * | ExtendedData |
| uint32 | MaxDurability |
| std::vector< ItemEffectEntry const * > | Effects |
| uint32 | ScriptId |
| uint32 | FoodType |
| uint32 | MinMoneyLoot |
| uint32 | MaxMoneyLoot |
| uint32 | FlagsCu |
| float | SpellPPMRate |
| uint32 | RandomBonusListTemplateId |
| std::bitset< MAX_CLASSES *MAX_SPECIALIZATIONS > | Specializations [3] |
| uint32 | ItemSpecClassMask |
| int32 | QuestLogItemId |
Definition at line 845 of file ItemTemplate.h.
|
static |
Definition at line 296 of file ItemTemplate.cpp.
References ChrSpecializationEntry::ClassID, MAX_SPECIALIZATIONS, and ChrSpecializationEntry::OrderIndex.
Referenced by IsUsableByLootSpecialization(), and ObjectMgr::LoadItemTemplates().
| bool ItemTemplate::CanChangeEquipStateInCombat | ( | ) | const |
Definition at line 75 of file ItemTemplate.cpp.
References GetClass(), GetInventoryType(), INVTYPE_HOLDABLE, INVTYPE_RELIC, INVTYPE_SHIELD, ITEM_CLASS_PROJECTILE, and ITEM_CLASS_WEAPON.
Referenced by Player::CanEquipItem(), and Player::CanUnequipItem().
|
inline |
Definition at line 862 of file ItemTemplate.h.
References ItemSparseEntry::AllowableClass.
Referenced by Player::BuyItemFromVendorSlot(), Player::CanRollNeedForItem(), Player::CanUseItem(), and WorldSession::SendListInventory().
|
inline |
Definition at line 863 of file ItemTemplate.h.
References ItemSparseEntry::AllowableRace.
Referenced by Player::CanRollNeedForItem(), and Player::CanUseItem().
Definition at line 890 of file ItemTemplate.h.
References ASSERT, MAX_ITEM_PROTO_ZONES, and ItemSparseEntry::ZoneBound.
Referenced by Item::GetBaseDisenchantLoot(), and Item::IsLimitedToAnotherMapOrZone().
Definition at line 147 of file ItemTemplate.cpp.
References ArmorLocationEntry::Chainmodifier, ItemArmorTotalEntry::Cloth, ArmorLocationEntry::Clothmodifier, GetClass(), GetInventoryType(), GetQuality(), GetSubClass(), INVTYPE_CHEST, INVTYPE_ROBE, ITEM_CLASS_ARMOR, ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_HEIRLOOM, ITEM_QUALITY_RARE, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_ARMOR_SHIELD, ItemArmorTotalEntry::Leather, ArmorLocationEntry::Leathermodifier, ItemArmorTotalEntry::Mail, ItemArmorTotalEntry::Plate, ArmorLocationEntry::Platemodifier, ItemArmorShieldEntry::Quality, ItemArmorQualityEntry::Qualitymod, sArmorLocationStore, sItemArmorQualityStore, sItemArmorShieldStore, and sItemArmorTotalStore.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 902 of file ItemTemplate.h.
References ItemSparseEntry::ArtifactID.
Referenced by Player::CanUseItem(), Item::CheckArtifactRelicSlotUnlock(), Spell::CheckCast(), Item::Create(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), and Item::SaveToDB().
|
inline |
Definition at line 892 of file ItemTemplate.h.
References ItemSparseEntry::BagFamily.
Referenced by Player::CanStoreItem(), Player::CanStoreItems(), and ItemCanGoIntoBag().
|
inline |
Definition at line 864 of file ItemTemplate.h.
References ItemSparseEntry::ItemLevel.
Referenced by AuctionHouseObject::AddAuction(), Player::BuyItemFromVendorSlot(), Spell::CheckCast(), Spell::EffectFeedPet(), AuctionsBucketKey::ForCommodity(), ItemBonusMgr::GetBonusListsForItem(), AuctionBotSeller::Initialize(), BonusData::Initialize(), CriteriaHandler::ModifierSatisfied(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 865 of file ItemTemplate.h.
References ItemSparseEntry::RequiredLevel.
Referenced by AuctionHouseObject::AddAuction(), Player::CanUseItem(), AuctionBotSeller::Initialize(), and BonusData::Initialize().
|
inline |
Definition at line 884 of file ItemTemplate.h.
References ItemSparseEntry::Bonding.
Referenced by Player::BuyItemFromVendorSlot(), Player::CanStoreItem(), Item::GetBaseDisenchantLoot(), AuctionBotSeller::Initialize(), BonusData::Initialize(), and WorldSession::SendListInventory().
|
inline |
Definition at line 858 of file ItemTemplate.h.
References ItemSparseEntry::VendorStackCount.
Referenced by Player::_StoreOrEquipNewItem(), Player::BuyItemFromVendorSlot(), Item::GetSellPrice(), WorldSession::HandlePetitionBuy(), WorldSession::SendListInventory(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 859 of file ItemTemplate.h.
References ItemSparseEntry::BuyPrice.
Referenced by Player::BuyItemFromVendorSlot(), Item::GetBuyPrice(), AuctionBotSeller::Initialize(), WorldSession::SendListInventory(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 851 of file ItemTemplate.h.
References ItemEntry::ClassID.
Referenced by Player::_ApplyItemBonuses(), AuctionHouseObject::AddAuction(), Item::CalculateDurabilityRepairCost(), CollectionMgr::CanAddAppearance(), CanChangeEquipStateInCombat(), Player::CanEquipItem(), Player::CanRollNeedForItem(), Player::CanStoreItem(), Player::CanStoreItem_InBag(), Player::CanStoreItems(), Player::CanTitanGrip(), Item::CanTransmogrifyItemWithItem(), Player::CanUseItem(), Spell::CheckItems(), Player::EquipItem(), Player::FindEquipSlot(), GetArmor(), Item::GetBaseDisenchantLoot(), AuctionBotSeller::GetBuyModifier(), Item::GetBuyPrice(), GetDPS(), AuctionBotSeller::GetSellModifier(), Item::GetSellPrice(), Player::GetShield(), GetSkill(), AuctionBotSeller::GetStackSizeForItem(), Player::GetWeaponForAttack(), GetWeaponTransmogOutfitSlotOption(), spell_gen_fishing::HandleDummy(), HasSignature(), AuctionBotSeller::Initialize(), Item::IsFitToSpellRequirements(), Player::IsTwoHandUsed(), Item::IsValidTransmogrificationTarget(), ItemCanGoIntoBag(), CriteriaHandler::ModifierSatisfied(), Player::ProcessItemCast(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 872 of file ItemTemplate.h.
References ItemSparseEntry::ContainerSlots.
Referenced by AuctionHouseObject::AddAuction(), Player::CanStoreItem_InSpecificSlot(), Bag::Create(), and Bag::LoadFromDB().
| void ItemTemplate::GetDamage | ( | uint32 | itemLevel, |
| float & | minDamage, | ||
| float & | maxDamage | ||
| ) | const |
Definition at line 260 of file ItemTemplate.cpp.
References GetDelay(), GetDmgVariance(), and GetDPS().
Referenced by Player::_ApplyWeaponDamage().
|
inline |
Definition at line 881 of file ItemTemplate.h.
References ItemSparseEntry::DamageDamageType.
| char const * ItemTemplate::GetDefaultLocaleName | ( | ) | const |
Definition at line 142 of file ItemTemplate.cpp.
References ItemSparseEntry::Display, ExtendedData, and sWorld.
Referenced by Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), GetName(), WorldSession::HandleAuctionSellItem(), npc_commandscript::HandleNpcAddVendorItemCommand(), npc_commandscript::HandleNpcDeleteVendorItemCommand(), Guild::BankMoveItemData::LogAction(), WorldSession::moveItems(), and BlackMarketMgr::SendAuctionWonMail().
|
inline |
Definition at line 882 of file ItemTemplate.h.
References ItemSparseEntry::ItemDelay.
Referenced by Player::_ApplyWeaponDamage(), Player::CastItemCombatSpell(), Unit::GetAPMultiplier(), GetDamage(), Player::SetRegularAttackTime(), and Player::UpdateDamageDoneMods().
|
inline |
Definition at line 901 of file ItemTemplate.h.
References ItemSparseEntry::DmgVariance.
Referenced by GetDamage().
| float ItemTemplate::GetDPS | ( | uint32 | itemLevel | ) | const |
Definition at line 207 of file ItemTemplate.cpp.
References GetClass(), GetInventoryType(), GetQuality(), GetSubClass(), HasFlag(), INVTYPE_2HWEAPON, INVTYPE_AMMO, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_THROWN, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, ITEM_CLASS_WEAPON, ITEM_FLAG2_CASTER_WEAPON, ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_HEIRLOOM, ITEM_QUALITY_RARE, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_GUN, ITEM_SUBCLASS_WEAPON_WAND, sItemDamageAmmoStore, sItemDamageOneHandCasterStore, sItemDamageOneHandStore, sItemDamageTwoHandCasterStore, and sItemDamageTwoHandStore.
Referenced by Player::_ApplyWeaponDamage(), and GetDamage().
|
inline |
Definition at line 898 of file ItemTemplate.h.
References ItemSparseEntry::DurationInInventory.
Referenced by Item::Create(), and Item::LoadFromDB().
|
inline |
Definition at line 896 of file ItemTemplate.h.
References ItemSparseEntry::GemProperties.
Referenced by Player::EnchantmentFitsRequirements(), Item::GemsFitSockets(), Player::GetItemCount(), and Player::HasItemOrGemWithIdEquipped().
|
inline |
Definition at line 900 of file ItemTemplate.h.
References ItemSparseEntry::RequiredHoliday.
Referenced by Player::CanUseItem().
|
inline |
Definition at line 850 of file ItemTemplate.h.
References ItemEntry::ID.
Referenced by AddItemsSetItem(), Player::BuyItemFromVendorSlot(), Player::CanBankItem(), Item::CanBeMergedPartlyWith(), Player::CanEquipItem(), Player::CanEquipUniqueItem(), Player::CanTakeMoreSimilarItems(), Player::CastItemUseSpell(), Spell::DoCreateItem(), Player::FindEquipSlot(), AuctionsBucketKey::ForCommodity(), Item::GetBaseDisenchantLoot(), npc_commandscript::HandleNpcAddVendorItemCommand(), npc_commandscript::HandleNpcDeleteVendorItemCommand(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleSocketGems(), HasSignature(), BonusData::Initialize(), LinkValidator< LinkTags::item >::IsTextValid(), Player::ItemAddedQuestCheck(), NewItemOrBag(), and Player::SendQuestUpdateAddItem().
|
inline |
Definition at line 861 of file ItemTemplate.h.
References ItemSparseEntry::InventoryType.
Referenced by Player::_ApplyItemBonuses(), Player::_ApplyItemMods(), Player::_ApplyWeaponDamage(), AuctionHouseObject::AddAuction(), Player::ApplyEnchantment(), Player::AutoUnequipOffhandIfNeed(), CollectionMgr::CanAddAppearance(), ItemBonusMgr::CanApplyBonusTreeToItem(), CanChangeEquipStateInCombat(), Player::CanEquipItem(), Player::CanRollNeedForItem(), Item::CanTransmogrifyItemWithItem(), Player::DestroyItem(), Player::EquipItem(), Player::FindEquipSlot(), GetArmor(), ItemBonusMgr::GetBonusListsForItem(), Item::GetBuyPrice(), GetDPS(), Item::GetItemLevel(), Spell::GetSpellCastDataAmmo(), Unit::GetUnitBlockChance(), Player::GetUseableItemByPos(), GetWeaponTransmogOutfitSlotOption(), WorldSession::HandleTransmogrifyItems(), Item::IsFitToSpellRequirements(), Player::IsTwoHandUsed(), Player::IsUsingTwoHandedWeaponInOneHand(), NewItemOrBag(), Player::ProcessItemCast(), Player::StoreNewItem(), and Player::UpdateAverageItemLevelTotal().
|
inline |
Definition at line 878 of file ItemTemplate.h.
References ItemSparseEntry::ItemLevelOffsetCurveID.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 879 of file ItemTemplate.h.
References ItemSparseEntry::ItemLevelOffsetItemLevel.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 899 of file ItemTemplate.h.
References ItemSparseEntry::LimitCategory.
Referenced by Player::CanTakeMoreSimilarItems(), Spell::CheckItems(), and BonusData::Initialize().
|
inline |
Definition at line 889 of file ItemTemplate.h.
References ItemSparseEntry::ItemSet.
Referenced by Player::_ApplyAllItemMods(), Player::_ApplyAllLevelScaleItemMods(), Player::_RemoveAllItemMods(), AddItemsSetItem(), Player::DestroyItem(), Player::EquipItem(), Player::RemoveItem(), and RemoveItemsSetItem().
|
inline |
Definition at line 880 of file ItemTemplate.h.
References ItemSparseEntry::ItemSquishEraID.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 888 of file ItemTemplate.h.
References ItemSparseEntry::LockID.
Referenced by Spell::CheckCast(), Spell::EffectOpenLock(), WorldSession::HandleOpenItemOpcode(), and AuctionBotSeller::Initialize().
|
inline |
Definition at line 891 of file ItemTemplate.h.
References ItemSparseEntry::InstanceBound.
Referenced by Item::GetBaseDisenchantLoot(), and Item::IsLimitedToAnotherMapOrZone().
|
inline |
Definition at line 871 of file ItemTemplate.h.
References ItemSparseEntry::MaxCount.
Referenced by Player::AddQuestAndCheckCompletion(), Player::CanTakeMoreSimilarItems(), send_commandscript::HandleSendItemsCommand(), WorldSession::HandleWrapItem(), and Player::HasQuestForItem().
|
inline |
Definition at line 925 of file ItemTemplate.h.
References ItemSparseEntry::Stackable.
Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), Loot::AddItem(), Player::CanBankItem(), Item::CanBeMergedPartlyWith(), Player::CanStoreItem(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InInventorySlots(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), Spell::CheckItems(), Item::CreateItem(), Spell::DoCreateItem(), AuctionsBucketKey::ForItem(), Item::GetBaseDisenchantLoot(), AuctionBotSeller::GetStackSizeForItem(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), send_commandscript::HandleSendItemsCommand(), Player::HasQuestForItem(), HasSignature(), WorldSession::SendListInventory(), Player::StoreNewItem(), Player::SwapItem(), and Spell::TakeCastItem().
| char const * ItemTemplate::GetName | ( | LocaleConstant | locale | ) | const |
Definition at line 58 of file ItemTemplate.cpp.
References ItemSparseEntry::Display, ExtendedData, and GetDefaultLocaleName().
Referenced by npc_commandscript::_ShowLootEntry(), Item::GetNameForLocaleIdx(), list_commandscript::HandleListMailCommand(), and LinkValidator< LinkTags::item >::IsTextValid().
|
inline |
Definition at line 855 of file ItemTemplate.h.
References ItemSparseEntry::FactionRelated.
|
inline |
Definition at line 886 of file ItemTemplate.h.
References ItemSparseEntry::PageID.
Referenced by WorldSession::HandleReadItem().
|
inline |
Definition at line 877 of file ItemTemplate.h.
References ItemSparseEntry::PlayerLevelToItemLevelCurveID.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 856 of file ItemTemplate.h.
References ItemSparseEntry::PriceRandomValue.
Referenced by Item::GetBuyPrice().
|
inline |
Definition at line 857 of file ItemTemplate.h.
References ItemSparseEntry::PriceVariance.
Referenced by Item::GetBuyPrice().
|
inline |
Definition at line 854 of file ItemTemplate.h.
References ItemSparseEntry::OverallQualityID.
Referenced by npc_commandscript::_ShowLootEntry(), Player::BuyItemFromVendorSlot(), CollectionMgr::CanAddAppearance(), Player::CanUseItem(), GetArmor(), GetDPS(), list_commandscript::HandleListMailCommand(), AuctionBotSeller::Initialize(), BonusData::Initialize(), CriteriaHandler::ModifierSatisfied(), AuctionHouseBot::PrepareStatusInfos(), LootStoreItem::Roll(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 897 of file ItemTemplate.h.
References ItemSparseEntry::QualityModifier.
|
inline |
Definition at line 883 of file ItemTemplate.h.
References ItemSparseEntry::ItemRange.
|
inline |
Definition at line 903 of file ItemTemplate.h.
References ItemSparseEntry::ExpansionID.
Referenced by AuctionHouseObject::BuildListBuckets(), and Item::GetBaseDisenchantLoot().
|
inline |
Definition at line 869 of file ItemTemplate.h.
References ItemSparseEntry::MinFactionID.
Referenced by Player::BuyItemFromVendorSlot(), and Player::CanUseItem().
|
inline |
Definition at line 870 of file ItemTemplate.h.
References ItemSparseEntry::MinReputation.
Referenced by Player::BuyItemFromVendorSlot(), and Player::CanUseItem().
|
inline |
Definition at line 866 of file ItemTemplate.h.
References ItemSparseEntry::RequiredSkill.
Referenced by Player::CanRollNeedForItem(), Player::CanUseItem(), and LootItem::ItemAllowedForPlayer().
|
inline |
Definition at line 867 of file ItemTemplate.h.
References ItemSparseEntry::RequiredSkillRank.
Referenced by AuctionHouseObject::AddAuction(), Player::CanRollNeedForItem(), Player::CanUseItem(), Spell::CheckItems(), Spell::EffectMilling(), Spell::EffectProspecting(), and AuctionBotSeller::Initialize().
|
inline |
Definition at line 868 of file ItemTemplate.h.
References ItemSparseEntry::RequiredAbility.
Referenced by Player::CanRollNeedForItem(), and Player::CanUseItem().
|
inline |
Definition at line 876 of file ItemTemplate.h.
References ItemSparseEntry::ContentTuningID.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 860 of file ItemTemplate.h.
References ItemSparseEntry::SellPrice.
Referenced by AuctionHouseMgr::GetCommodityAuctionDeposit(), Item::GetSellPrice(), AuctionBotSeller::Initialize(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 853 of file ItemTemplate.h.
References ItemEntry::SheatheType.
Referenced by TransmogMgr::ValidateSlots().
| uint32 ItemTemplate::GetSkill | ( | ) | const |
Definition at line 97 of file ItemTemplate.cpp.
References GetClass(), GetSubClass(), ITEM_CLASS_ARMOR, ITEM_CLASS_PROFESSION, ITEM_CLASS_WEAPON, MAX_ITEM_SUBCLASS_ARMOR, MAX_ITEM_SUBCLASS_PROFESSION, MAX_ITEM_SUBCLASS_WEAPON, SKILL_ALCHEMY, SKILL_ARCHAEOLOGY, SKILL_AXES, SKILL_BLACKSMITHING, SKILL_BOWS, SKILL_CLOTH, SKILL_COOKING, SKILL_CROSSBOWS, SKILL_DAGGERS, SKILL_ENCHANTING, SKILL_ENGINEERING, SKILL_FISHING, SKILL_FIST_WEAPONS, SKILL_GUNS, SKILL_HERBALISM, SKILL_INSCRIPTION, SKILL_JEWELCRAFTING, SKILL_LEATHER, SKILL_LEATHERWORKING, SKILL_MACES, SKILL_MAIL, SKILL_MINING, SKILL_PLATE_MAIL, SKILL_POLEARMS, SKILL_SHIELD, SKILL_SKINNING, SKILL_STAVES, SKILL_SWORDS, SKILL_TAILORING, SKILL_TWO_HANDED_AXES, SKILL_TWO_HANDED_MACES, SKILL_TWO_HANDED_SWORDS, SKILL_WANDS, and SKILL_WARGLAIVES.
Referenced by Player::CanRollNeedForItem(), Player::FindEquipSlot(), and Item::GetSkill().
|
inline |
Definition at line 895 of file ItemTemplate.h.
References ItemSparseEntry::SocketMatchEnchantmentId.
Referenced by WorldSession::HandleSocketGems().
|
inline |
Definition at line 894 of file ItemTemplate.h.
References ASSERT, MAX_ITEM_PROTO_SOCKETS, and ItemSparseEntry::SocketType.
Referenced by Item::GemsFitSockets(), and BonusData::Initialize().
|
inline |
Definition at line 887 of file ItemTemplate.h.
References ItemSparseEntry::StartQuestID.
Referenced by Player::GiveQuestSourceItem(), LootItem::ItemAllowedForPlayer(), and Player::TakeQuestSourceItem().
Definition at line 873 of file ItemTemplate.h.
References ASSERT, MAX_ITEM_PROTO_STATS, and ItemSparseEntry::StatModifierBonusStat.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 875 of file ItemTemplate.h.
References ASSERT, MAX_ITEM_PROTO_STATS, and ItemSparseEntry::StatPercentageOfSocket.
Referenced by BonusData::Initialize().
Definition at line 874 of file ItemTemplate.h.
References ASSERT, MAX_ITEM_PROTO_STATS, and ItemSparseEntry::StatPercentEditor.
Referenced by BonusData::Initialize().
|
inline |
Definition at line 852 of file ItemTemplate.h.
References ItemEntry::SubclassID.
Referenced by Player::_ApplyItemBonuses(), AuctionHouseObject::AddAuction(), Item::CalculateDurabilityRepairCost(), CollectionMgr::CanAddAppearance(), Player::CanEquipItem(), Player::CanRollNeedForItem(), Player::CanStoreItem(), Player::CanStoreItem_InBag(), Player::CanStoreItems(), Player::CanTitanGrip(), Item::CanTransmogrifyItemWithItem(), Spell::CheckItems(), Player::FindEquipSlot(), Unit::GetAPMultiplier(), GetArmor(), Item::GetBaseDisenchantLoot(), AuctionBotSeller::GetBuyModifier(), Item::GetBuyPrice(), GetDPS(), GetSkill(), GetWeaponTransmogOutfitSlotOption(), spell_gen_fishing::HandleDummy(), AuctionBotSeller::Initialize(), Item::IsFitToSpellRequirements(), ConditionMgr::IsPlayerMeetingCondition(), Player::IsTwoHandUsed(), Item::IsValidTransmogrificationTarget(), ItemCanGoIntoBag(), and CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 893 of file ItemTemplate.h.
References ItemSparseEntry::TotemCategoryID.
Referenced by Player::HasItemTotemCategory().
| TransmogOutfitSlotOption ItemTemplate::GetWeaponTransmogOutfitSlotOption | ( | ) | const |
Definition at line 301 of file ItemTemplate.cpp.
References GetClass(), GetInventoryType(), GetSubClass(), INVTYPE_HOLDABLE, INVTYPE_SHIELD, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_WEAPON_AXE, ITEM_SUBCLASS_WEAPON_AXE2, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_DAGGER, ITEM_SUBCLASS_WEAPON_FIST_WEAPON, ITEM_SUBCLASS_WEAPON_GUN, ITEM_SUBCLASS_WEAPON_MACE, ITEM_SUBCLASS_WEAPON_MACE2, ITEM_SUBCLASS_WEAPON_POLEARM, ITEM_SUBCLASS_WEAPON_STAFF, ITEM_SUBCLASS_WEAPON_SWORD, ITEM_SUBCLASS_WEAPON_SWORD2, ITEM_SUBCLASS_WEAPON_WARGLAIVES, None, OffHand, OneHandedWeapon, RangedWeapon, Shield, and TwoHandedWeapon.
Referenced by Item::CanTransmogrifyItemWithItem(), Player::SetVisibleItemSlot(), and TransmogMgr::ValidateSlots().
|
inline |
Definition at line 958 of file ItemTemplate.h.
References ItemSparseEntry::Flags.
Referenced by Player::_StoreOrEquipNewItem(), Player::ApplyEquipCooldown(), Player::ApplyItemEquipSpell(), Player::ApplyItemLootedSpell(), Player::ApplyItemLootedSpell(), Player::ApplyItemObtainSpells(), Player::AutoUnequipOffhandIfNeed(), Player::BuyItemFromVendorSlot(), CollectionMgr::CanAddAppearance(), ItemBonusMgr::CanApplyBonusTreeToItem(), Player::CanEquipItem(), Player::CanEquipUniqueItem(), Player::CanSelectQuestPackageItem(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CastItemUseSpell(), Spell::CheckItems(), Player::DestroyItem(), WorldSession::DoLootRelease(), Spell::EffectMilling(), Spell::EffectProspecting(), Item::GetBaseDisenchantLoot(), Item::GetBuyPrice(), GetDPS(), Item::GetItemLevel(), Item::GetSellPrice(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSocketGems(), WorldSession::HandleWrapItem(), HasSignature(), AuctionBotSeller::Initialize(), BonusData::Initialize(), Item::IsFitToSpellRequirements(), LinkValidator< LinkTags::item >::IsTextValid(), IsUsableByLootSpecialization(), Item::IsValidTransmogrificationTarget(), LootItem::ItemAllowedForPlayer(), LootItem::LootItem(), Player::ProcessItemCast(), WorldSession::SendListInventory(), Player::SendNewItem(), Player::SendQuestUpdateAddItem(), Player::StoreNewItem(), Spell::TakeReagents(), LootRoll::TryToStart(), and Player::UpdateItemDuration().
|
inline |
Definition at line 959 of file ItemTemplate.h.
References ItemSparseEntry::Flags.
|
inline |
Definition at line 960 of file ItemTemplate.h.
References ItemSparseEntry::Flags.
|
inline |
Definition at line 961 of file ItemTemplate.h.
References ItemSparseEntry::Flags.
|
inline |
Definition at line 962 of file ItemTemplate.h.
| bool ItemTemplate::HasSignature | ( | ) | const |
Definition at line 66 of file ItemTemplate.cpp.
References GetClass(), GetId(), GetMaxStackSize(), HasFlag(), ITEM_CLASS_CONSUMABLE, ITEM_CLASS_QUEST, ITEM_FLAG_NO_CREATOR, and ITEM_HEARTHSTONE.
|
inline |
Definition at line 938 of file ItemTemplate.h.
References ITEM_CLASS_ARMOR.
Referenced by LootItem::ItemAllowedForPlayer().
|
inline |
Definition at line 933 of file ItemTemplate.h.
References ITEM_CLASS_CONSUMABLE, and ITEM_FLAG_CONJURED.
|
inline |
Definition at line 934 of file ItemTemplate.h.
References ITEM_FLAG2_USED_IN_A_TRADESKILL.
Referenced by Player::CanStoreItem(), Player::GetCraftingReagentItemsToDeposit(), and ItemCanGoIntoBag().
|
inline |
Definition at line 923 of file ItemTemplate.h.
References BAG_FAMILY_MASK_CURRENCY_TOKENS.
Referenced by LootItemStorage::AddNewStoredLoot().
|
inline |
Definition at line 940 of file ItemTemplate.h.
References ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_GUN, and ITEM_SUBCLASS_WEAPON_WAND.
Referenced by Player::GetWeaponForAttack().
| bool ItemTemplate::IsUsableByLootSpecialization | ( | Player const * | player, |
| bool | alwaysAllowBoundToAccount | ||
| ) | const |
Definition at line 272 of file ItemTemplate.cpp.
References AsUnderlyingType(), CalculateItemSpecBit(), Player::GetDefaultSpecId(), Unit::GetLevel(), Player::GetLootSpecId(), Player::GetPrimarySpecialization(), HasFlag(), ITEM_FLAG_IS_BOUND_TO_ACCOUNT, sChrSpecializationStore, and Specializations.
Referenced by Player::CanSelectQuestPackageItem(), and LootItem::ItemAllowedForPlayer().
|
inline |
Definition at line 932 of file ItemTemplate.h.
References ITEM_FLAG3_CAN_STORE_ENCHANTS.
|
inline |
Definition at line 937 of file ItemTemplate.h.
References ITEM_CLASS_WEAPON.
Referenced by spell_sha_flametongue_weapon::HandleEffectHitTarget(), and LootItem::ItemAllowedForPlayer().
| ItemEntry const* ItemTemplate::BasicData |
Definition at line 847 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemTemplates().
| std::vector<ItemEffectEntry const*> ItemTemplate::Effects |
Definition at line 906 of file ItemTemplate.h.
Referenced by Player::ApplyItemLootedSpell(), AuctionHouseObject::BuildListBuckets(), Player::CanUseItem(), WorldSession::HandleUseToy(), BonusData::Initialize(), Player::ItemAddedQuestCheck(), and LootItem::ItemAllowedForPlayer().
| ItemSparseEntry const* ItemTemplate::ExtendedData |
Definition at line 848 of file ItemTemplate.h.
Referenced by GetDefaultLocaleName(), GetName(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::FlagsCu |
Definition at line 913 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemTemplateAddon(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::FoodType |
Definition at line 910 of file ItemTemplate.h.
Referenced by Pet::HaveInDiet(), ObjectMgr::LoadItemTemplateAddon(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ItemSpecClassMask |
Definition at line 917 of file ItemTemplate.h.
Referenced by Player::CanSelectQuestPackageItem(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::MaxDurability |
Definition at line 905 of file ItemTemplate.h.
Referenced by Item::Create(), Bag::Create(), WorldSession::HandleOpenWrappedItemCallback(), Item::LoadFromDB(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::MaxMoneyLoot |
Definition at line 912 of file ItemTemplate.h.
Referenced by WorldSession::HandleOpenItemOpcode(), ObjectMgr::LoadItemTemplateAddon(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::MinMoneyLoot |
Definition at line 911 of file ItemTemplate.h.
Referenced by WorldSession::HandleOpenItemOpcode(), ObjectMgr::LoadItemTemplateAddon(), and ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::QuestLogItemId |
Definition at line 918 of file ItemTemplate.h.
Referenced by Player::ItemAddedQuestCheck(), ObjectMgr::LoadItemTemplateAddon(), ObjectMgr::LoadItemTemplates(), Player::SendNewItem(), and Player::SendQuestUpdateAddItem().
| uint32 ItemTemplate::RandomBonusListTemplateId |
Definition at line 915 of file ItemTemplate.h.
Referenced by GenerateItemRandomBonusListId(), ObjectMgr::LoadItemTemplateAddon(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ScriptId |
Definition at line 909 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemScriptNames(), ObjectMgr::LoadItemTemplates(), and ScriptMgr::OnItemExpire().
| std::bitset<MAX_CLASSES * MAX_SPECIALIZATIONS> ItemTemplate::Specializations[3] |
Definition at line 916 of file ItemTemplate.h.
Referenced by IsUsableByLootSpecialization(), and ObjectMgr::LoadItemTemplates().
| float ItemTemplate::SpellPPMRate |
Definition at line 914 of file ItemTemplate.h.
Referenced by Player::CastItemCombatSpell(), ObjectMgr::LoadItemTemplateAddon(), and ObjectMgr::LoadItemTemplates().