![]() |
TrinityCore
|
#include <ItemTemplate.h>
Private Member Functions | |
| void | _LoadTotalAP () |
Private Attributes | |
| int32 | _totalAP |
Friends | |
| class | ObjectMgr |
Definition at line 599 of file ItemTemplate.h.
|
private |
Definition at line 160 of file ItemTemplate.cpp.
References _totalAP, Effects, ITEM_MOD_ATTACK_POWER, ITEM_SPELLTRIGGER_ON_EQUIP, ItemStat, SPELL_AURA_MOD_ATTACK_POWER, sSpellMgr, and StatsCount.
Referenced by ObjectMgr::LoadItemTemplates().
| WorldPacket ItemTemplate::BuildQueryData | ( | LocaleConstant | loc | ) | const |
Definition at line 184 of file ItemTemplate.cpp.
References WorldPackets::Query::QueryItemSingleResponse::Allow, AllowableClass, WorldPackets::Query::ItemStats::AllowableClass, AllowableRace, WorldPackets::Query::ItemStats::AllowableRace, AmmoType, WorldPackets::Query::ItemStats::AmmoType, ArcaneRes, Area, WorldPackets::Query::ItemStats::Area, Armor, ArmorDamageModifier, WorldPackets::Query::ItemStats::ArmorDamageModifier, BagFamily, WorldPackets::Query::ItemStats::BagFamily, Block, WorldPackets::Query::ItemStats::Block, Bonding, WorldPackets::Query::ItemStats::Bonding, BuyPrice, WorldPackets::Query::ItemStats::BuyPrice, Class, WorldPackets::Query::ItemStats::Class, WorldPackets::Query::ItemSocketData::Color, ContainerSlots, WorldPackets::Query::ItemStats::ContainerSlots, WorldPackets::Query::ItemSocketData::Content, Damage, WorldPackets::Query::ItemStats::Damage, WorldPackets::Query::ItemDamageData::DamageMax, WorldPackets::Query::ItemDamageData::DamageMin, WorldPackets::Query::ItemDamageData::DamageType, Delay, WorldPackets::Query::ItemStats::Delay, Description, WorldPackets::Query::ItemStats::Description, DisplayInfoID, WorldPackets::Query::ItemStats::DisplayInfoID, Duration, WorldPackets::Query::ItemStats::Duration, Effects, FireRes, Flags, WorldPackets::Query::ItemStats::Flags, FrostRes, GemProperties, WorldPackets::Query::ItemStats::GemProperties, ObjectMgr::GetLocaleString(), HolidayId, WorldPackets::Query::ItemStats::HolidayId, HolyRes, InventoryType, WorldPackets::Query::ItemStats::InventoryType, ItemId, WorldPackets::Query::QueryItemSingleResponse::ItemID, ItemLevel, WorldPackets::Query::ItemStats::ItemLevel, ItemLimitCategory, WorldPackets::Query::ItemStats::ItemLimitCategory, ItemSet, WorldPackets::Query::ItemStats::ItemSet, ItemStat, WorldPackets::Query::ItemStats::ItemStat, WorldPackets::Query::ItemStatData::ItemStatType, WorldPackets::Query::ItemStatData::ItemStatValue, LanguageID, WorldPackets::Query::ItemStats::LanguageID, LockID, WorldPackets::Query::ItemStats::LockID, Map, WorldPackets::Query::ItemStats::Map, Material, WorldPackets::Query::ItemStats::Material, MAX_ITEM_PROTO_DAMAGES, MAX_ITEM_PROTO_SOCKETS, MAX_ITEM_PROTO_SPELLS, MaxCount, WorldPackets::Query::ItemStats::MaxCount, MaxDurability, WorldPackets::Query::ItemStats::MaxDurability, WorldPackets::ServerPacket::Move(), WorldPackets::Query::ItemStats::Name, Name1, NatureRes, PageMaterial, WorldPackets::Query::ItemStats::PageMaterial, PageText, WorldPackets::Query::ItemStats::PageText, Quality, WorldPackets::Query::ItemStats::Quality, RandomProperty, WorldPackets::Query::ItemStats::RandomProperty, RandomSuffix, WorldPackets::Query::ItemStats::RandomSuffix, RangedModRange, WorldPackets::Query::ItemStats::RangedModRange, RequiredCityRank, WorldPackets::Query::ItemStats::RequiredCityRank, RequiredDisenchantSkill, WorldPackets::Query::ItemStats::RequiredDisenchantSkill, RequiredHonorRank, WorldPackets::Query::ItemStats::RequiredHonorRank, RequiredLevel, WorldPackets::Query::ItemStats::RequiredLevel, RequiredReputationFaction, WorldPackets::Query::ItemStats::RequiredReputationFaction, RequiredReputationRank, WorldPackets::Query::ItemStats::RequiredReputationRank, RequiredSkill, WorldPackets::Query::ItemStats::RequiredSkill, RequiredSkillRank, WorldPackets::Query::ItemStats::RequiredSkillRank, RequiredSpell, WorldPackets::Query::ItemStats::RequiredSpell, WorldPackets::Query::ItemStats::Resistance, ScalingStatDistribution, WorldPackets::Query::ItemStats::ScalingStatDistribution, ScalingStatValue, WorldPackets::Query::ItemStats::ScalingStatValue, SellPrice, WorldPackets::Query::ItemStats::SellPrice, ShadowRes, Sheath, WorldPackets::Query::ItemStats::Sheath, WorldPackets::ServerPacket::ShrinkToFit(), sObjectMgr, Socket, WorldPackets::Query::ItemStats::Socket, socketBonus, WorldPackets::Query::ItemStats::SocketBonus, SoundOverrideSubclass, WorldPackets::Query::ItemStats::SoundOverrideSubclass, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_NORMAL, SPELL_SCHOOL_SHADOW, WorldPackets::Query::ItemSpellData::SpellCategory, WorldPackets::Query::ItemSpellData::SpellCategoryCooldown, WorldPackets::Query::ItemSpellData::SpellCharges, WorldPackets::Query::ItemSpellData::SpellCooldown, WorldPackets::Query::ItemSpellData::SpellId, WorldPackets::Query::ItemStats::Spells, WorldPackets::Query::ItemSpellData::SpellTrigger, Stackable, WorldPackets::Query::ItemStats::Stackable, StartQuest, WorldPackets::Query::ItemStats::StartQuest, WorldPackets::Query::QueryItemSingleResponse::Stats, StatsCount, WorldPackets::Query::ItemStats::StatsCount, SubClass, WorldPackets::Query::ItemStats::SubClass, TotemCategory, WorldPackets::Query::ItemStats::TotemCategory, and WorldPackets::Query::QueryItemSingleResponse::Write().
Referenced by InitializeQueryData().
| bool ItemTemplate::CanChangeEquipStateInCombat | ( | ) | const |
Definition at line 44 of file ItemTemplate.cpp.
References Class, 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 689 of file ItemTemplate.h.
Referenced by Player::BuyItemFromVendorSlot(), Player::CanRollForItemInLFG(), Player::CanUseItem(), and WorldSession::SendListInventory().
|
inline |
Definition at line 690 of file ItemTemplate.h.
Referenced by Player::CanRollForItemInLFG(), and Player::CanUseItem().
|
inline |
Definition at line 713 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 725 of file ItemTemplate.h.
Referenced by Item::IsLimitedToAnotherMapOrZone().
|
inline |
Definition at line 707 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 733 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 727 of file ItemTemplate.h.
Referenced by Player::CanBankItem(), Player::CanStoreItem(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), and ItemCanGoIntoBag().
|
inline |
Definition at line 691 of file ItemTemplate.h.
Referenced by Item::CalculateDurabilityRepairCost(), Spell::CheckCast(), Spell::CheckItems(), Spell::EffectFeedPet(), GenerateEnchSuffixFactor(), Item::GetItemLevel(), AuctionBotSeller::Initialize(), AchievementCriteriaData::Meets(), AuctionBotSeller::SetPricesOfItem(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
Definition at line 723 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses(), and Unit::GetUnitBlockChance().
|
inline |
Definition at line 716 of file ItemTemplate.h.
Referenced by Player::_StoreItem(), LootItem::AllowedForPlayer(), Player::BuyItemFromVendorSlot(), WorldSession::HandleUseItemOpcode(), AuctionBotSeller::Initialize(), Item::LoadFromDB(), WorldSession::SendListInventory(), and Player::VisualizeItem().
|
inline |
Definition at line 685 of file ItemTemplate.h.
Referenced by Player::_StoreOrEquipNewItem(), Player::BuyItemFromVendorSlot(), Player::Create(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::SendListInventory(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 686 of file ItemTemplate.h.
Referenced by Player::BuyItemFromVendorSlot(), Item::GetBuyPrice(), AuctionBotSeller::Initialize(), WorldSession::SendListInventory(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 680 of file ItemTemplate.h.
Referenced by Player::_ApplyAmmoBonuses(), Player::_ApplyItemBonuses(), LootItem::AllowedForPlayer(), AuctionHouseObject::BuildListAuctionItems(), Item::CalculateDurabilityRepairCost(), Player::CanEquipItem(), Player::CanRollForItemInLFG(), Player::CanStoreItem_InBag(), Player::CanStoreItems(), Player::CanTitanGrip(), Player::CanUseItem(), Player::CheckAmmoCompatibility(), Spell::CheckItems(), Player::Create(), Player::EquipItem(), AuctionBotSeller::GetBuyModifier(), AuctionBotSeller::GetSellModifier(), Player::GetShield(), Item::GetSpell(), AuctionBotSeller::GetStackSizeForItem(), Player::GetWeaponForAttack(), WorldSession::HandleUseItemOpcode(), AuctionBotSeller::Initialize(), Item::IsFitToSpellRequirements(), ItemCanGoIntoBag(), AuctionBotSeller::SetPricesOfItem(), and AuctionBotSeller::SetStat().
|
inline |
Definition at line 699 of file ItemTemplate.h.
Referenced by Player::CanStoreItem_InSpecificSlot(), Bag::Create(), and Bag::LoadFromDB().
|
inline |
Definition at line 705 of file ItemTemplate.h.
References ASSERT, and MAX_ITEM_PROTO_DAMAGES.
Referenced by Player::_ApplyAmmoBonuses(), and Player::_ApplyWeaponDamage().
Definition at line 706 of file ItemTemplate.h.
References ASSERT, and MAX_ITEM_PROTO_DAMAGES.
| std::string const & ItemTemplate::GetDefaultLocaleName | ( | ) | const |
Definition at line 155 of file ItemTemplate.cpp.
References GetName(), and sWorld.
Referenced by AuctionHouseObject::BuildListAuctionItems(), npc_commandscript::HandleNpcAddVendorItemCommand(), npc_commandscript::HandleNpcDeleteVendorItemCommand(), and Guild::BankMoveItemData::LogAction().
|
inline |
Definition at line 714 of file ItemTemplate.h.
Referenced by Player::_ApplyWeaponDamage(), Player::CastItemCombatSpell(), Unit::GetAPMultiplier(), Player::SetRegularAttackTime(), and Player::UpdateDamageDoneMods().
|
inline |
Definition at line 683 of file ItemTemplate.h.
Referenced by Player::BuildEnumData(), Item::GetDisplayId(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgPlayerReward(), WorldSession::SendListInventory(), and Spell::UpdateSpellCastDataAmmo().
| float ItemTemplate::GetDPS | ( | ) | const |
Definition at line 68 of file ItemTemplate.cpp.
References Damage, Delay, and MAX_ITEM_PROTO_DAMAGES.
Referenced by getFeralBonus().
|
inline |
Definition at line 734 of file ItemTemplate.h.
Referenced by Item::Create(), and Item::LoadFromDB().
Definition at line 80 of file ItemTemplate.cpp.
References Class, GetDPS(), INVTYPE_2HWEAPON, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, and ITEM_CLASS_WEAPON.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 709 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 711 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 731 of file ItemTemplate.h.
Referenced by Player::EnchantmentFitsRequirements(), Item::GemsFitSockets(), Player::GetItemCount(), Bag::GetItemCount(), and Player::HasItemOrGemWithIdEquipped().
|
inline |
Definition at line 736 of file ItemTemplate.h.
Referenced by Player::CanUseItem().
|
inline |
Definition at line 708 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 679 of file ItemTemplate.h.
Referenced by AddItemsSetItem(), AuctionHouseObject::BuildListAuctionItems(), Player::BuyItemFromVendorSlot(), Player::CanBankItem(), Item::CanBeMergedPartlyWith(), Player::CanEquipUniqueItem(), Player::CanTakeMoreSimilarItems(), Player::CastItemUseSpell(), GenerateItemRandomPropertyId(), GetName(), WorldSession::HandleAuctionSellItem(), npc_commandscript::HandleNpcAddVendorItemCommand(), npc_commandscript::HandleNpcDeleteVendorItemCommand(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleSocketOpcode(), RemoveItemsSetItem(), and Spell::TakeReagents().
|
inline |
Definition at line 688 of file ItemTemplate.h.
Referenced by Player::AutoUnequipOffhandIfNeed(), Player::BuildEnumData(), AuctionHouseObject::BuildListAuctionItems(), CanChangeEquipStateInCombat(), Player::CanEquipItem(), Player::CanRollForItemInLFG(), Player::CanUseAmmo(), Player::EquipItem(), Player::FindEquipSlot(), GenerateEnchSuffixFactor(), WorldSession::HandleUseItemOpcode(), Item::IsBag(), Item::IsFitToSpellRequirements(), Player::IsTwoHandUsed(), Player::IsUsingTwoHandedWeaponInOneHand(), NewItemOrBag(), Spell::TakeAmmo(), and Spell::UpdateSpellCastDataAmmo().
| float ItemTemplate::GetItemLevelIncludingQuality | ( | ) | const |
Definition at line 96 of file ItemTemplate.cpp.
References ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_EPIC, ITEM_QUALITY_HEIRLOOM, ITEM_QUALITY_LEGENDARY, ITEM_QUALITY_NORMAL, ITEM_QUALITY_POOR, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, ItemLevel, and Quality.
|
inline |
Definition at line 735 of file ItemTemplate.h.
Referenced by Player::CanEquipUniqueItem(), Player::CanEquipUniqueItem(), Player::CanTakeMoreSimilarItems(), Spell::CheckItems(), Item::GetGemCountWithLimitCategory(), WorldSession::HandleSocketOpcode(), Player::HasItemWithLimitCategoryEquipped(), and Player::SendEquipError().
|
inline |
Definition at line 724 of file ItemTemplate.h.
Referenced by Player::_ApplyAllItemMods(), Player::_RemoveAllItemMods(), AddItemsSetItem(), Player::DestroyItem(), Player::EquipItem(), Player::RemoveItem(), and RemoveItemsSetItem().
|
inline |
Definition at line 720 of file ItemTemplate.h.
Referenced by Spell::CheckCast(), Spell::EffectOpenLock(), WorldSession::HandleOpenItemOpcode(), and AuctionBotSeller::Initialize().
|
inline |
Definition at line 726 of file ItemTemplate.h.
Referenced by Item::IsLimitedToAnotherMapOrZone().
|
inline |
Definition at line 698 of file ItemTemplate.h.
Referenced by Player::AddQuestAndCheckCompletion(), CanRollOnItem(), Player::CanTakeMoreSimilarItems(), send_commandscript::HandleSendItemsCommand(), WorldSession::HandleWrapItemOpcode(), and Player::HasQuestForItem().
|
inline |
Definition at line 743 of file ItemTemplate.h.
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(), Player::Create(), Item::CreateItem(), Spell::DoCreateItem(), Item::GetMaxStackCount(), AuctionBotSeller::GetStackSizeForItem(), send_commandscript::HandleSendItemsCommand(), HasSignature(), Player::StoreNewItem(), Player::SwapItem(), and Spell::TakeCastItem().
| std::string const & ItemTemplate::GetName | ( | LocaleConstant | locale | ) | const |
Definition at line 25 of file ItemTemplate.cpp.
References DEFAULT_LOCALE, GetId(), Name1, and sObjectMgr.
Referenced by npc_commandscript::_ShowLootEntry(), GetDefaultLocaleName(), Item::GetNameForLocaleIdx(), and LinkValidator< LinkTags::item >::IsTextValid().
|
inline |
Definition at line 710 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 718 of file ItemTemplate.h.
Referenced by WorldSession::HandleReadItem().
|
inline |
Definition at line 684 of file ItemTemplate.h.
Referenced by npc_commandscript::_ShowLootEntry(), AuctionHouseObject::BuildListAuctionItems(), Item::CalculateDurabilityRepairCost(), Player::CanUseItem(), Spell::CheckItems(), GenerateEnchSuffixFactor(), Group::GroupLoot(), AuctionBotSeller::Initialize(), LinkValidator< LinkTags::item >::IsColorValid(), AchievementCriteriaData::Meets(), Group::NeedBeforeGreed(), AuctionHouseBot::PrepareStatusInfos(), AchievementMgr::RequirementsSatisfied(), LootStoreItem::Roll(), AuctionBotBuyer::RollBidChance(), AuctionBotBuyer::RollBuyChance(), AuctionBotSeller::SetPricesOfItem(), and AuctionBotSeller::SetStat().
|
inline |
Definition at line 721 of file ItemTemplate.h.
Referenced by GenerateItemRandomPropertyId(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().
|
inline |
Definition at line 722 of file ItemTemplate.h.
Referenced by GenerateEnchSuffixFactor(), GenerateItemRandomPropertyId(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().
|
inline |
Definition at line 715 of file ItemTemplate.h.
|
inline |
Definition at line 732 of file ItemTemplate.h.
Referenced by Spell::CheckItems(), Group::GroupLoot(), and Group::NeedBeforeGreed().
|
inline |
Definition at line 692 of file ItemTemplate.h.
Referenced by AuctionHouseObject::BuildListAuctionItems(), Player::CanUseItem(), Spell::CheckItems(), AuctionBotSeller::Initialize(), and Player::SendEquipError().
|
inline |
Definition at line 696 of file ItemTemplate.h.
Referenced by Player::BuyItemFromVendorSlot(), and Player::CanUseItem().
|
inline |
Definition at line 697 of file ItemTemplate.h.
Referenced by Player::BuyItemFromVendorSlot(), and Player::CanUseItem().
|
inline |
Definition at line 693 of file ItemTemplate.h.
Referenced by LootItem::AllowedForPlayer(), Player::CanRollForItemInLFG(), and Player::CanUseItem().
|
inline |
Definition at line 694 of file ItemTemplate.h.
Referenced by Player::CanRollForItemInLFG(), Player::CanUseItem(), Spell::CheckItems(), Spell::EffectMilling(), Spell::EffectProspecting(), and AuctionBotSeller::Initialize().
|
inline |
Definition at line 695 of file ItemTemplate.h.
Referenced by Player::CanRollForItemInLFG(), Player::CanUseItem(), and EquippedOk().
|
inline |
Definition at line 703 of file ItemTemplate.h.
Referenced by Player::CanEquipItem(), and Player::GetScalingStatDistributionFor().
|
inline |
Definition at line 704 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses(), Player::_ApplyWeaponDamage(), and Player::GetScalingStatValuesFor().
|
inline |
Definition at line 687 of file ItemTemplate.h.
Referenced by Item::GetSellPrice(), AuctionBotSeller::Initialize(), and AuctionBotSeller::SetPricesOfItem().
|
inline |
Definition at line 712 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 682 of file ItemTemplate.h.
| uint32 ItemTemplate::GetSkill | ( | ) | const |
Definition at line 120 of file ItemTemplate.cpp.
References Class, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, MAX_ITEM_SUBCLASS_ARMOR, MAX_ITEM_SUBCLASS_WEAPON, SKILL_2H_AXES, SKILL_2H_MACES, SKILL_2H_SWORDS, SKILL_ASSASSINATION, SKILL_AXES, SKILL_BOWS, SKILL_CLOTH, SKILL_CROSSBOWS, SKILL_DAGGERS, SKILL_FISHING, SKILL_FIST_WEAPONS, SKILL_GUNS, SKILL_LEATHER, SKILL_MACES, SKILL_MAIL, SKILL_PLATE_MAIL, SKILL_POLEARMS, SKILL_SHIELD, SKILL_STAVES, SKILL_SWORDS, SKILL_THROWN, SKILL_WANDS, and SubClass.
Referenced by Item::GetSkill().
|
inline |
Definition at line 730 of file ItemTemplate.h.
Referenced by WorldSession::HandleSocketOpcode().
|
inline |
Definition at line 729 of file ItemTemplate.h.
References ASSERT, and MAX_ITEM_PROTO_SOCKETS.
Referenced by Player::_ApplyItemMods(), Player::ApplyEnchantment(), Spell::CheckItems(), Player::CorrectMetaGemEnchants(), Player::EnchantmentFitsRequirements(), Item::GemsFitSockets(), Player::GetItemCount(), Bag::GetItemCount(), WorldSession::HandleSocketOpcode(), Player::HasGemWithLimitCategoryEquipped(), Player::HasItemOrGemWithIdEquipped(), and Player::ToggleMetaGemsActive().
|
inline |
Definition at line 719 of file ItemTemplate.h.
Referenced by LootItem::AllowedForPlayer(), Player::GiveQuestSourceItem(), Item::hasQuest(), and Player::TakeQuestSourceItem().
Definition at line 701 of file ItemTemplate.h.
References ASSERT, and MAX_ITEM_PROTO_STATS.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 700 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses().
Definition at line 702 of file ItemTemplate.h.
References ASSERT, and MAX_ITEM_PROTO_STATS.
Referenced by Player::_ApplyItemBonuses().
|
inline |
Definition at line 681 of file ItemTemplate.h.
Referenced by Player::_ApplyItemBonuses(), AuctionHouseObject::BuildListAuctionItems(), Item::CalculateDurabilityRepairCost(), Player::CanEquipItem(), Player::CanRollForItemInLFG(), Player::CanStoreItem_InBag(), Player::CanStoreItems(), Player::CanTitanGrip(), Player::CheckAmmoCompatibility(), Spell::CheckItems(), Player::Create(), Player::FindEquipSlot(), Unit::GetAPMultiplier(), AuctionBotSeller::GetBuyModifier(), Item::GetSpell(), AuctionBotSeller::Initialize(), Item::IsFitToSpellRequirements(), ItemCanGoIntoBag(), Spell::TakeAmmo(), and Player::UpdateWeaponSkill().
|
inline |
Definition at line 751 of file ItemTemplate.h.
Referenced by Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 728 of file ItemTemplate.h.
Referenced by Player::HasItemTotemCategory().
|
inline |
Definition at line 763 of file ItemTemplate.h.
Referenced by Player::_StoreOrEquipNewItem(), Loot::AddItem(), LootItem::AllowedForPlayer(), Player::ApplyEquipCooldown(), Player::BuyItemFromVendorSlot(), Player::CanEquipUniqueItem(), Player::CanUseItem(), Spell::CheckItems(), Player::DestroyItem(), WorldSession::DoLootRelease(), Spell::EffectEnchantItemPerm(), Spell::EffectMilling(), Spell::EffectProspecting(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSocketOpcode(), WorldSession::HandleUseItemOpcode(), WorldSession::HandleWrapItemOpcode(), HasSignature(), AuctionBotSeller::Initialize(), Item::IsBoundAccountWide(), VendorItem::IsGoldRequired(), ObjectMgr::LoadItemTemplates(), LootItem::LootItem(), Group::NeedBeforeGreed(), WorldSession::SendListInventory(), Spell::TakeReagents(), and Player::UpdateItemDuration().
|
inline |
Definition at line 764 of file ItemTemplate.h.
|
inline |
Definition at line 765 of file ItemTemplate.h.
| bool ItemTemplate::HasSignature | ( | ) | const |
Definition at line 35 of file ItemTemplate.cpp.
References Class, GetMaxStackSize(), HasFlag(), ITEM_CLASS_CONSUMABLE, ITEM_CLASS_QUEST, ITEM_FLAG_NO_CREATOR, and ItemId.
Referenced by Spell::DoCreateItem().
| void ItemTemplate::InitializeQueryData | ( | ) |
Definition at line 178 of file ItemTemplate.cpp.
References BuildQueryData(), LOCALE_enUS, QueryData, and TOTAL_LOCALES.
|
inline |
Definition at line 759 of file ItemTemplate.h.
References ITEM_CLASS_TRADE_GOODS, and ITEM_SUBCLASS_ARMOR_ENCHANTMENT.
Referenced by Item::IsArmorVellum(), and Item::IsFitToSpellRequirements().
|
inline |
Definition at line 760 of file ItemTemplate.h.
References ITEM_CLASS_CONSUMABLE, and ITEM_FLAG_CONJURED.
Referenced by Item::IsConjuredConsumable().
|
inline |
Definition at line 741 of file ItemTemplate.h.
References BAG_FAMILY_MASK_CURRENCY_TOKENS.
Referenced by LootItemStorage::AddNewStoredLoot(), Player::CanStoreItem(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), and Item::IsCurrencyToken().
|
inline |
Definition at line 757 of file ItemTemplate.h.
References ITEM_CLASS_CONSUMABLE, and ITEM_SUBCLASS_POTION.
Referenced by Item::IsPotion().
|
inline |
Definition at line 758 of file ItemTemplate.h.
References ITEM_CLASS_TRADE_GOODS, and ITEM_SUBCLASS_WEAPON_ENCHANTMENT.
Referenced by Item::IsFitToSpellRequirements(), and Item::IsWeaponVellum().
|
friend |
Definition at line 601 of file ItemTemplate.h.
|
private |
Definition at line 774 of file ItemTemplate.h.
Referenced by _LoadTotalAP().
| uint32 ItemTemplate::AllowableClass |
Definition at line 615 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::AllowableRace |
Definition at line 616 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::AmmoType |
Definition at line 642 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ArcaneRes |
Definition at line 640 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Area |
Definition at line 659 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Armor |
Definition at line 634 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| float ItemTemplate::ArmorDamageModifier |
Definition at line 667 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::BagFamily |
Definition at line 661 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Block |
Definition at line 656 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Bonding |
Definition at line 645 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::BuyCount |
Definition at line 611 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::BuyPrice |
Definition at line 612 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Class |
Definition at line 604 of file ItemTemplate.h.
Referenced by BuildQueryData(), CanChangeEquipStateInCombat(), getFeralBonus(), GetSkill(), HasSignature(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ContainerSlots |
Definition at line 628 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| std::array<_Damage, MAX_ITEM_PROTO_DAMAGES> ItemTemplate::Damage |
Definition at line 633 of file ItemTemplate.h.
Referenced by BuildQueryData(), GetDPS(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Delay |
Definition at line 641 of file ItemTemplate.h.
Referenced by BuildQueryData(), GetDPS(), and ObjectMgr::LoadItemTemplates().
| std::string ItemTemplate::Description |
Definition at line 646 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::DisenchantID |
Definition at line 672 of file ItemTemplate.h.
Referenced by Spell::CheckItems(), Group::CountTheRoll(), Spell::EffectDisEnchant(), Group::GroupLoot(), ObjectMgr::LoadItemTemplates(), Group::NeedBeforeGreed(), and Player::SendLoot().
| uint32 ItemTemplate::DisplayInfoID |
Definition at line 608 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Duration |
Definition at line 668 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| std::array<ItemEffect, MAX_ITEM_PROTO_SPELLS> ItemTemplate::Effects |
Definition at line 644 of file ItemTemplate.h.
Referenced by _LoadTotalAP(), LootItem::AllowedForPlayer(), Player::ApplyEquipCooldown(), Player::ApplyItemEquipSpell(), Player::ApplyItemObtainSpells(), BuildQueryData(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CastItemUseSpell(), Spell::CheckItems(), Item::Create(), Player::Create(), Spell::EffectLearnSpell(), Spell::EffectRechargeManaGem(), Item::GetSellPrice(), WorldSession::HandleUseItemOpcode(), ObjectMgr::LoadItemTemplates(), Spell::TakeCastItem(), and Spell::TakeReagents().
| uint32 ItemTemplate::FireRes |
Definition at line 636 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| std::array<uint32, MAX_ITEM_PROTO_FLAGS> ItemTemplate::Flags |
Definition at line 610 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::FlagsCu |
Definition at line 676 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::FoodType |
Definition at line 673 of file ItemTemplate.h.
Referenced by Pet::HaveInDiet(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::FrostRes |
Definition at line 638 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::GemProperties |
Definition at line 665 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::HolidayId |
Definition at line 670 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::HolyRes |
Definition at line 635 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::InventoryType |
Definition at line 614 of file ItemTemplate.h.
Referenced by BuildQueryData(), ObjectMgr::LoadItemSetNames(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ItemId |
Definition at line 603 of file ItemTemplate.h.
Referenced by BuildQueryData(), HasSignature(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ItemLevel |
Definition at line 617 of file ItemTemplate.h.
Referenced by BuildQueryData(), GetItemLevelIncludingQuality(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ItemLimitCategory |
Definition at line 669 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ItemSet |
Definition at line 657 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| std::array<_ItemStat, MAX_ITEM_PROTO_STATS> ItemTemplate::ItemStat |
Definition at line 630 of file ItemTemplate.h.
Referenced by _LoadTotalAP(), BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::LanguageID |
Definition at line 648 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::LockID |
Definition at line 651 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Map |
Definition at line 660 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::Material |
Definition at line 652 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::MaxCount |
Definition at line 626 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::MaxDurability |
Definition at line 658 of file ItemTemplate.h.
Referenced by BuildQueryData(), Item::Create(), Bag::Create(), WorldSession::HandleOpenWrappedItemCallback(), Item::LoadFromDB(), ObjectMgr::LoadItemTemplates(), and WorldSession::SendListInventory().
| uint32 ItemTemplate::MaxMoneyLoot |
Definition at line 675 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemTemplates(), and Player::SendLoot().
| uint32 ItemTemplate::MinMoneyLoot |
Definition at line 674 of file ItemTemplate.h.
Referenced by ObjectMgr::LoadItemTemplates(), and Player::SendLoot().
| std::string ItemTemplate::Name1 |
Definition at line 607 of file ItemTemplate.h.
Referenced by BuildQueryData(), GetName(), ObjectMgr::LoadItemSetNames(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::NatureRes |
Definition at line 637 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::PageMaterial |
Definition at line 649 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::PageText |
Definition at line 647 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Quality |
Definition at line 609 of file ItemTemplate.h.
Referenced by BuildQueryData(), GetItemLevelIncludingQuality(), and ObjectMgr::LoadItemTemplates().
| std::array<WorldPacket, TOTAL_LOCALES> ItemTemplate::QueryData |
Definition at line 677 of file ItemTemplate.h.
Referenced by InitializeQueryData().
| int32 ItemTemplate::RandomProperty |
Definition at line 654 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::RandomSuffix |
Definition at line 655 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| float ItemTemplate::RangedModRange |
Definition at line 643 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredCityRank |
Definition at line 623 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredDisenchantSkill |
Definition at line 666 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredHonorRank |
Definition at line 622 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredLevel |
Definition at line 618 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredReputationFaction |
Definition at line 624 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredReputationRank |
Definition at line 625 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredSkill |
Definition at line 619 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredSkillRank |
Definition at line 620 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::RequiredSpell |
Definition at line 621 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ScalingStatDistribution |
Definition at line 631 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ScalingStatValue |
Definition at line 632 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ScriptId |
Definition at line 671 of file ItemTemplate.h.
Referenced by Item::GetScriptId(), ObjectMgr::LoadItemTemplates(), and ScriptMgr::OnItemExpire().
| uint32 ItemTemplate::SellPrice |
Definition at line 613 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::ShadowRes |
Definition at line 639 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::Sheath |
Definition at line 653 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| std::array<_Socket, MAX_ITEM_PROTO_SOCKETS> ItemTemplate::Socket |
Definition at line 663 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::socketBonus |
Definition at line 664 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::SoundOverrideSubclass |
Definition at line 606 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| int32 ItemTemplate::Stackable |
Definition at line 627 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::StartQuest |
Definition at line 650 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::StatsCount |
Definition at line 629 of file ItemTemplate.h.
Referenced by _LoadTotalAP(), BuildQueryData(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::SubClass |
Definition at line 605 of file ItemTemplate.h.
Referenced by BuildQueryData(), GetSkill(), and ObjectMgr::LoadItemTemplates().
| uint32 ItemTemplate::TotemCategory |
Definition at line 662 of file ItemTemplate.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadItemTemplates().