TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ItemTemplate Struct Reference

#include <ItemTemplate.h>

Public Member Functions

uint32 GetId () const
 
uint32 GetClass () const
 
uint32 GetSubClass () const
 
uint32 GetQuality () const
 
uint32 GetFlags () const
 
uint32 GetFlags2 () const
 
uint32 GetFlags3 () const
 
float GetUnk1 () const
 
float GetUnk2 () const
 
uint32 GetBuyCount () const
 
uint32 GetBuyPrice () const
 
uint32 GetSellPrice () const
 
InventoryType GetInventoryType () const
 
int32 GetAllowableClass () const
 
int32 GetAllowableRace () const
 
uint32 GetBaseItemLevel () const
 
int32 GetBaseRequiredLevel () const
 
uint32 GetRequiredSkill () const
 
uint32 GetRequiredSkillRank () const
 
uint32 GetRequiredSpell () const
 
uint32 GetRequiredReputationFaction () const
 
uint32 GetRequiredReputationRank () const
 
uint32 GetMaxCount () const
 
uint32 GetContainerSlots () const
 
int32 GetItemStatType (uint32 index) const
 
int32 GetItemStatValue (uint32 index) const
 
int32 GetItemStatAllocation (uint32 index) const
 
float GetItemStatSocketCostMultiplier (uint32 index) const
 
uint32 GetScalingStatDistribution () const
 
uint32 GetDamageType () const
 
uint32 GetDelay () const
 
ItemBondingType GetBonding () const
 
char constGetName (LocaleConstant locale) const
 
uint32 GetPageText () const
 
uint32 GetStartQuest () const
 
uint32 GetLockID () const
 
uint32 GetRandomProperty () const
 
uint32 GetRandomSuffix () const
 
uint32 GetItemSet () const
 
uint32 GetArea () const
 
uint32 GetMap () const
 
uint32 GetBagFamily () const
 
uint32 GetTotemCategory () const
 
SocketColor GetSocketColor (uint32 index) const
 
uint32 GetSocketBonus () const
 
uint32 GetGemProperties () const
 
float GetArmorDamageModifier () const
 
uint32 GetDuration () const
 
uint32 GetItemLimitCategory () const
 
HolidayIds GetHolidayID () const
 
float GetStatScalingFactor () const
 
uint32 GetBaseArmor () const
 
void GetBaseDamage (float &minDamage, float &maxDamage) const
 
bool CanChangeEquipStateInCombat () const
 
bool IsCurrencyToken () const
 
uint32 GetMaxStackSize () const
 
bool IsPotion () const
 
bool IsVellum () const
 
bool IsConjuredConsumable () const
 
bool IsRangedWeapon () const
 
char constGetDefaultLocaleName () const
 
uint32 GetArmor (uint32 itemLevel) const
 
void GetDamage (uint32 itemLevel, float &minDamage, float &maxDamage) const
 
bool CanWinForPlayer (Player const *player) const
 

Public Attributes

ItemEntry constBasicData
 
ItemSparseEntry constExtendedData
 
uint32 MaxDurability
 
std::vector< ItemEffectEntry
const * > 
Effects
 
uint32 ScriptId
 
uint32 DisenchantID
 
uint32 RequiredDisenchantSkill
 
uint32 FoodType
 
uint32 MinMoneyLoot
 
uint32 MaxMoneyLoot
 
uint32 FlagsCu
 
float SpellPPMRate
 
std::unordered_set< uint32Specializations [2]
 

Member Function Documentation

bool ItemTemplate::CanChangeEquipStateInCombat ( ) const
inline
722  {
723  switch (GetInventoryType())
724  {
725  case INVTYPE_RELIC:
726  case INVTYPE_SHIELD:
727  case INVTYPE_HOLDABLE:
728  return true;
729  default:
730  break;
731  }
732 
733  switch (GetClass())
734  {
735  case ITEM_CLASS_WEAPON:
737  return true;
738  }
739 
740  return false;
741  }
Definition: ItemTemplate.h:360
Definition: ItemTemplate.h:373
uint32 GetClass() const
Definition: ItemTemplate.h:653
InventoryType GetInventoryType() const
Definition: ItemTemplate.h:664
Definition: ItemTemplate.h:346
Definition: ItemTemplate.h:369
Definition: ItemTemplate.h:355
bool ItemTemplate::CanWinForPlayer ( Player const player) const
142 {
143  std::unordered_set<uint32> const& specs = Specializations[player->getLevel() > 40];
144  if (specs.empty())
145  return true;
146 
147  uint32 spec = player->GetSpecId(player->GetActiveTalentGroup());
148  if (!spec)
149  spec = player->GetDefaultSpecId();
150 
151  if (!spec)
152  return false;
153 
154  auto itr = specs.find(spec);
155  return itr != specs.end();
156 }
std::unordered_set< uint32 > Specializations[2]
Definition: ItemTemplate.h:718
uint32_t uint32
Definition: Define.h:150

+ Here is the caller graph for this function:

int32 ItemTemplate::GetAllowableClass ( ) const
inline
665 { return ExtendedData->AllowableClass; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
int32 AllowableClass
Definition: DB2Structure.h:803

+ Here is the caller graph for this function:

int32 ItemTemplate::GetAllowableRace ( ) const
inline
666 { return ExtendedData->AllowableRace; }
int32 AllowableRace
Definition: DB2Structure.h:804
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 ItemTemplate::GetArea ( ) const
inline
691 { return ExtendedData->Area; }
uint32 Area
Definition: DB2Structure.h:841
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetArmor ( uint32  itemLevel) const
39 {
41  if (quality > ITEM_QUALITY_ARTIFACT)
42  return 0;
43 
44  // all items but shields
46  {
47  ItemArmorQualityEntry const* armorQuality = sItemArmorQualityStore.LookupEntry(itemLevel);
48  ItemArmorTotalEntry const* armorTotal = sItemArmorTotalStore.LookupEntry(itemLevel);
49  if (!armorQuality || !armorTotal)
50  return 0;
51 
52  uint32 inventoryType = GetInventoryType();
53  if (inventoryType == INVTYPE_ROBE)
54  inventoryType = INVTYPE_CHEST;
55 
56  ArmorLocationEntry const* location = sArmorLocationStore.LookupEntry(inventoryType);
57  if (!location)
58  return 0;
59 
61  return 0;
62 
63  return uint32(armorQuality->QualityMod[quality] * armorTotal->Value[GetSubClass() - 1] * location->Modifier[GetSubClass() - 1] + 0.5f);
64  }
65 
66  // shields
67  ItemArmorShieldEntry const* shield = sItemArmorShieldStore.LookupEntry(itemLevel);
68  if (!shield)
69  return 0;
70 
71  return uint32(shield->Quality[quality] + 0.5f);
72 }
float Quality[7]
Definition: DBCStructure.h:691
Definition: ItemTemplate.h:352
DBCStorage< ArmorLocationEntry > sArmorLocationStore(ArmorLocationfmt)
uint32 GetClass() const
Definition: ItemTemplate.h:653
Definition: DBCStructure.h:680
Definition: ItemTemplate.h:474
InventoryType GetInventoryType() const
Definition: ItemTemplate.h:664
Definition: SharedDefines.h:327
DBCStorage< ItemArmorTotalEntry > sItemArmorTotalStore(ItemArmorTotalfmt)
Definition: DBCStructure.h:93
DBCStorage< ItemArmorShieldEntry > sItemArmorShieldStore(ItemArmorShieldfmt)
DBCStorage< ItemArmorQualityEntry > sItemArmorQualityStore(ItemArmorQualityfmt)
uint32_t uint32
Definition: Define.h:150
Definition: ItemTemplate.h:337
Definition: SharedDefines.h:326
ItemQualities
Definition: SharedDefines.h:318
float Value[4]
Definition: DBCStructure.h:698
uint32 GetSubClass() const
Definition: ItemTemplate.h:654
float Modifier[5]
Definition: DBCStructure.h:96
float QualityMod[7]
Definition: DBCStructure.h:683
Definition: SharedDefines.h:323
uint32_t uint32
Definition: g3dmath.h:168
Definition: ItemTemplate.h:371
Definition: ItemTemplate.h:471
Definition: DBCStructure.h:687
Definition: ItemTemplate.h:476
Definition: DBCStructure.h:694
uint32 GetQuality() const
Definition: ItemTemplate.h:655

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float ItemTemplate::GetArmorDamageModifier ( ) const
inline
float ArmorDamageModifier
Definition: DB2Structure.h:848
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 ItemTemplate::GetBagFamily ( ) const
inline
693 { return ExtendedData->BagFamily; }
uint32 BagFamily
Definition: DB2Structure.h:843
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetBaseArmor ( ) const
inline
703 { return GetArmor(ExtendedData->ItemLevel); }
uint32 ItemLevel
Definition: DB2Structure.h:805
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 GetArmor(uint32 itemLevel) const
Definition: ItemTemplate.cpp:38
void ItemTemplate::GetBaseDamage ( float &  minDamage,
float &  maxDamage 
) const
inline
704 { GetDamage(ExtendedData->ItemLevel, minDamage, maxDamage); }
uint32 ItemLevel
Definition: DB2Structure.h:805
void GetDamage(uint32 itemLevel, float &minDamage, float &maxDamage) const
Definition: ItemTemplate.cpp:74
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 ItemTemplate::GetBaseItemLevel ( ) const
inline
667 { return ExtendedData->ItemLevel; }
uint32 ItemLevel
Definition: DB2Structure.h:805
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

int32 ItemTemplate::GetBaseRequiredLevel ( ) const
inline
668 { return ExtendedData->RequiredLevel; }
int32 RequiredLevel
Definition: DB2Structure.h:806
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

ItemBondingType ItemTemplate::GetBonding ( ) const
inline
ItemBondingType
Definition: ItemTemplate.h:117
uint32 Bonding
Definition: DB2Structure.h:825
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetBuyCount ( ) const
inline
661 { return std::max(ExtendedData->BuyCount, 1u); }
uint32 BuyCount
Definition: DB2Structure.h:799
T max(const T &x, const T &y)
Definition: g3dmath.h:320
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetBuyPrice ( ) const
inline
662 { return ExtendedData->BuyPrice; }
uint32 BuyPrice
Definition: DB2Structure.h:800
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetClass ( ) const
inline
653 { return BasicData->Class; }
ItemEntry const * BasicData
Definition: ItemTemplate.h:649
uint32 Class
Definition: DB2Structure.h:713

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetContainerSlots ( ) const
inline
675 { return ExtendedData->ContainerSlots; }
uint32 ContainerSlots
Definition: DB2Structure.h:816
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

void ItemTemplate::GetDamage ( uint32  itemLevel,
float &  minDamage,
float &  maxDamage 
) const
75 {
76  minDamage = maxDamage = 0.0f;
78  if (GetClass() != ITEM_CLASS_WEAPON || quality > ITEM_QUALITY_ARTIFACT)
79  return;
80 
82  // get the right store here
84  return;
85 
86  switch (GetInventoryType())
87  {
88  case INVTYPE_AMMO:
89  store = &sItemDamageAmmoStore;
90  break;
91  case INVTYPE_2HWEAPON:
94  else
95  store = &sItemDamageTwoHandStore;
96  break;
97  case INVTYPE_RANGED:
98  case INVTYPE_THROWN:
100  switch (GetSubClass())
101  {
103  store = &sItemDamageWandStore;
104  break;
106  store = &sItemDamageThrownStore;
107  break;
111  store = &sItemDamageRangedStore;
112  break;
113  default:
114  return;
115  }
116  break;
117  case INVTYPE_WEAPON:
122  else
123  store = &sItemDamageOneHandStore;
124  break;
125  default:
126  return;
127  }
128 
129  ASSERT(store);
130 
131  ItemDamageEntry const* damageInfo = store->LookupEntry(itemLevel);
132  if (!damageInfo)
133  return;
134 
135  float dps = damageInfo->DPS[quality];
136  float avgDamage = dps * GetDelay() * 0.001f;
137  minDamage = (GetStatScalingFactor() * -0.5f + 1.0f) * avgDamage;
138  maxDamage = floor(float(avgDamage * (GetStatScalingFactor() * 0.5f + 1.0f) + 0.5f));
139 }
DBCStorage< ItemDamageEntry > sItemDamageThrownStore(ItemDamagefmt)
Definition: DBCStructure.h:673
Definition: DBCStore.h:74
DBCStorage< ItemDamageEntry > sItemDamageOneHandCasterStore(ItemDamagefmt)
static Vector3int16 floor(const Vector3 &v)
Definition: ItemTemplate.h:218
uint32 GetClass() const
Definition: ItemTemplate.h:653
arena_t NULL
Definition: jemalloc_internal.h:624
DBCStorage< ItemDamageEntry > sItemDamageOneHandStore(ItemDamagefmt)
float GetStatScalingFactor() const
Definition: ItemTemplate.h:702
uint32 GetFlags2() const
Definition: ItemTemplate.h:657
InventoryType GetInventoryType() const
Definition: ItemTemplate.h:664
Definition: SharedDefines.h:327
Definition: ItemTemplate.h:424
Definition: ItemTemplate.h:345
Definition: ItemTemplate.h:354
uint32 GetDelay() const
Definition: ItemTemplate.h:682
float DPS[7]
Definition: DBCStructure.h:676
Definition: ItemTemplate.h:438
Definition: ItemTemplate.h:347
Definition: ItemTemplate.h:425
Definition: ItemTemplate.h:356
uint32_t uint32
Definition: Define.h:150
Definition: SharedDefines.h:326
Definition: ItemTemplate.h:357
DBCStorage< ItemDamageEntry > sItemDamageAmmoStore(ItemDamagefmt)
ItemQualities
Definition: SharedDefines.h:318
Definition: ItemTemplate.h:440
Definition: ItemTemplate.h:349
Definition: ItemTemplate.h:441
Definition: ItemTemplate.h:353
Definition: ItemTemplate.h:369
uint32 GetSubClass() const
Definition: ItemTemplate.h:654
DBCStorage< ItemDamageEntry > sItemDamageWandStore(ItemDamagefmt)
Definition: ItemTemplate.h:358
DBCStorage< ItemDamageEntry > sItemDamageRangedStore(ItemDamagefmt)
#define ASSERT
Definition: Errors.h:55
T const * LookupEntry(uint32 id) const
Definition: DBCStore.h:89
DBCStorage< ItemDamageEntry > sItemDamageTwoHandStore(ItemDamagefmt)
Definition: SharedDefines.h:323
DBCStorage< ItemDamageEntry > sItemDamageTwoHandCasterStore(ItemDamagefmt)
uint32 GetQuality() const
Definition: ItemTemplate.h:655

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetDamageType ( ) const
inline
681 { return ExtendedData->DamageType; }
uint32 DamageType
Definition: DB2Structure.h:822
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
char const * ItemTemplate::GetDefaultLocaleName ( ) const
34 {
35  return ExtendedData->Name->Str[sWorld->GetDefaultDbcLocale()];
36 }
#define sWorld
Definition: World.h:887
char const * Str[TOTAL_LOCALES]
Definition: Common.h:148
LocalizedString * Name
Definition: DB2Structure.h:826
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetDelay ( ) const
inline
682 { return ExtendedData->Delay; }
uint32 Delay
Definition: DB2Structure.h:823
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetDuration ( ) const
inline
699 { return ExtendedData->Duration; }
uint32 Duration
Definition: DB2Structure.h:849
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetFlags ( ) const
inline
656 { return ExtendedData->Flags[0]; }
uint32 Flags[MAX_ITEM_PROTO_FLAGS]
Definition: DB2Structure.h:796
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetFlags2 ( ) const
inline
657 { return ExtendedData->Flags[1]; }
uint32 Flags[MAX_ITEM_PROTO_FLAGS]
Definition: DB2Structure.h:796
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetFlags3 ( ) const
inline
658 { return ExtendedData->Flags[2]; }
uint32 Flags[MAX_ITEM_PROTO_FLAGS]
Definition: DB2Structure.h:796
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetGemProperties ( ) const
inline
697 { return ExtendedData->GemProperties; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 GemProperties
Definition: DB2Structure.h:847

+ Here is the caller graph for this function:

HolidayIds ItemTemplate::GetHolidayID ( ) const
inline
701 { return HolidayIds(ExtendedData->HolidayID); }
uint32 HolidayID
Definition: DB2Structure.h:851
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
HolidayIds
Definition: SharedDefines.h:3714
uint32 ItemTemplate::GetId ( ) const
inline
652 { return BasicData->ID; }
ItemEntry const * BasicData
Definition: ItemTemplate.h:649
uint32 ID
Definition: DB2Structure.h:712

+ Here is the caller graph for this function:

InventoryType ItemTemplate::GetInventoryType ( ) const
inline
InventoryType
Definition: ItemTemplate.h:330
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 InventoryType
Definition: DB2Structure.h:802

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetItemLimitCategory ( ) const
inline
700 { return ExtendedData->ItemLimitCategory; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 ItemLimitCategory
Definition: DB2Structure.h:850

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetItemSet ( ) const
inline
690 { return ExtendedData->ItemSet; }
uint32 ItemSet
Definition: DB2Structure.h:840
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

int32 ItemTemplate::GetItemStatAllocation ( uint32  index) const
inline
678 { ASSERT(index < MAX_ITEM_PROTO_STATS); return ExtendedData->ItemStatAllocation[index]; }
int32 ItemStatAllocation[MAX_ITEM_PROTO_STATS]
Definition: DB2Structure.h:819
#define MAX_ITEM_PROTO_STATS
Definition: DB2Structure.h:790
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

float ItemTemplate::GetItemStatSocketCostMultiplier ( uint32  index) const
inline
#define MAX_ITEM_PROTO_STATS
Definition: DB2Structure.h:790
float ItemStatSocketCostMultiplier[MAX_ITEM_PROTO_STATS]
Definition: DB2Structure.h:820
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

int32 ItemTemplate::GetItemStatType ( uint32  index) const
inline
676 { ASSERT(index < MAX_ITEM_PROTO_STATS); return ExtendedData->ItemStatType[index]; }
int32 ItemStatType[MAX_ITEM_PROTO_STATS]
Definition: DB2Structure.h:817
#define MAX_ITEM_PROTO_STATS
Definition: DB2Structure.h:790
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

int32 ItemTemplate::GetItemStatValue ( uint32  index) const
inline
677 { ASSERT(index < MAX_ITEM_PROTO_STATS); return ExtendedData->ItemStatValue[index]; }
#define MAX_ITEM_PROTO_STATS
Definition: DB2Structure.h:790
int32 ItemStatValue[MAX_ITEM_PROTO_STATS]
Definition: DB2Structure.h:818
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetLockID ( ) const
inline
687 { return ExtendedData->LockID; }
uint32 LockID
Definition: DB2Structure.h:835
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetMap ( ) const
inline
692 { return ExtendedData->Map; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 Map
Definition: DB2Structure.h:842

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetMaxCount ( ) const
inline
674 { return ExtendedData->MaxCount; }
uint32 MaxCount
Definition: DB2Structure.h:814
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetMaxStackSize ( ) const
inline
746  {
747  return (ExtendedData->Stackable == 2147483647 || ExtendedData->Stackable <= 0) ? uint32(0x7FFFFFFF - 1) : uint32(ExtendedData->Stackable);
748  }
uint32 Stackable
Definition: DB2Structure.h:815
uint32_t uint32
Definition: Define.h:150
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

char const * ItemTemplate::GetName ( LocaleConstant  locale) const
26 {
27  if (!strlen(ExtendedData->Name->Str[locale]))
28  return GetDefaultLocaleName();
29 
30  return ExtendedData->Name->Str[locale];
31 }
char const * Str[TOTAL_LOCALES]
Definition: Common.h:148
LocalizedString * Name
Definition: DB2Structure.h:826
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
char const * GetDefaultLocaleName() const
Definition: ItemTemplate.cpp:33

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetPageText ( ) const
inline
685 { return ExtendedData->PageText; }
uint32 PageText
Definition: DB2Structure.h:831
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetQuality ( ) const
inline
655 { return ExtendedData->Quality; }
uint32 Quality
Definition: DB2Structure.h:795
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetRandomProperty ( ) const
inline
688 { return ExtendedData->RandomProperty; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 RandomProperty
Definition: DB2Structure.h:838

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetRandomSuffix ( ) const
inline
689 { return ExtendedData->RandomSuffix; }
uint32 RandomSuffix
Definition: DB2Structure.h:839
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetRequiredReputationFaction ( ) const
inline
uint32 RequiredReputationFaction
Definition: DB2Structure.h:812
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 ItemTemplate::GetRequiredReputationRank ( ) const
inline
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 RequiredReputationRank
Definition: DB2Structure.h:813
uint32 ItemTemplate::GetRequiredSkill ( ) const
inline
669 { return ExtendedData->RequiredSkill; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 RequiredSkill
Definition: DB2Structure.h:807

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetRequiredSkillRank ( ) const
inline
670 { return ExtendedData->RequiredSkillRank; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 RequiredSkillRank
Definition: DB2Structure.h:808

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetRequiredSpell ( ) const
inline
671 { return ExtendedData->RequiredSpell; }
uint32 RequiredSpell
Definition: DB2Structure.h:809
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetScalingStatDistribution ( ) const
inline
uint32 ScalingStatDistribution
Definition: DB2Structure.h:821
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetSellPrice ( ) const
inline
663 { return ExtendedData->SellPrice; }
uint32 SellPrice
Definition: DB2Structure.h:801
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetSocketBonus ( ) const
inline
696 { return ExtendedData->SocketBonus; }
uint32 SocketBonus
Definition: DB2Structure.h:846
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

SocketColor ItemTemplate::GetSocketColor ( uint32  index) const
inline
SocketColor
Definition: ItemTemplate.h:318
uint32 SocketColor[MAX_ITEM_PROTO_SOCKETS]
Definition: DB2Structure.h:845
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
#define MAX_ITEM_PROTO_SOCKETS
Definition: DB2Structure.h:789
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetStartQuest ( ) const
inline
686 { return ExtendedData->StartQuest; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
uint32 StartQuest
Definition: DB2Structure.h:834

+ Here is the caller graph for this function:

float ItemTemplate::GetStatScalingFactor ( ) const
inline
702 { return ExtendedData->StatScalingFactor; }
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
float StatScalingFactor
Definition: DB2Structure.h:852

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetSubClass ( ) const
inline
654 { return BasicData->SubClass; }
uint32 SubClass
Definition: DB2Structure.h:714
ItemEntry const * BasicData
Definition: ItemTemplate.h:649

+ Here is the caller graph for this function:

uint32 ItemTemplate::GetTotemCategory ( ) const
inline
694 { return ExtendedData->TotemCategory; }
uint32 TotemCategory
Definition: DB2Structure.h:844
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650
float ItemTemplate::GetUnk1 ( ) const
inline
659 { return ExtendedData->Unk1; }
float Unk1
Definition: DB2Structure.h:797
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

float ItemTemplate::GetUnk2 ( ) const
inline
660 { return ExtendedData->Unk2; }
float Unk2
Definition: DB2Structure.h:798
ItemSparseEntry const * ExtendedData
Definition: ItemTemplate.h:650

+ Here is the caller graph for this function:

bool ItemTemplate::IsConjuredConsumable ( ) const
inline
Definition: ItemTemplate.h:174
uint32 GetClass() const
Definition: ItemTemplate.h:653
Definition: ItemTemplate.h:367
uint32 GetFlags() const
Definition: ItemTemplate.h:656

+ Here is the caller graph for this function:

bool ItemTemplate::IsCurrencyToken ( ) const
inline
743 { return (GetBagFamily() & BAG_FAMILY_MASK_CURRENCY_TOKENS) != 0; }
Definition: ItemTemplate.h:312
uint32 GetBagFamily() const
Definition: ItemTemplate.h:693

+ Here is the caller graph for this function:

bool ItemTemplate::IsPotion ( ) const
inline
uint32 GetClass() const
Definition: ItemTemplate.h:653
Definition: ItemTemplate.h:391
uint32 GetSubClass() const
Definition: ItemTemplate.h:654
Definition: ItemTemplate.h:367

+ Here is the caller graph for this function:

bool ItemTemplate::IsRangedWeapon ( ) const
inline
755  {
756  return GetClass() == ITEM_CLASS_WEAPON ||
760  }
uint32 GetClass() const
Definition: ItemTemplate.h:653
Definition: ItemTemplate.h:424
Definition: ItemTemplate.h:425
Definition: ItemTemplate.h:440
Definition: ItemTemplate.h:369
uint32 GetSubClass() const
Definition: ItemTemplate.h:654

+ Here is the caller graph for this function:

bool ItemTemplate::IsVellum ( ) const
inline
uint32 GetClass() const
Definition: ItemTemplate.h:653
Definition: ItemTemplate.h:520
uint32 GetSubClass() const
Definition: ItemTemplate.h:654
Definition: ItemTemplate.h:374

+ Here is the caller graph for this function:

Member Data Documentation

ItemEntry const* ItemTemplate::BasicData
uint32 ItemTemplate::DisenchantID
std::vector<ItemEffectEntry const*> ItemTemplate::Effects
ItemSparseEntry const* ItemTemplate::ExtendedData
uint32 ItemTemplate::FlagsCu
uint32 ItemTemplate::FoodType
uint32 ItemTemplate::MaxDurability
uint32 ItemTemplate::MaxMoneyLoot
uint32 ItemTemplate::MinMoneyLoot
uint32 ItemTemplate::RequiredDisenchantSkill
uint32 ItemTemplate::ScriptId
std::unordered_set<uint32> ItemTemplate::Specializations[2]
float ItemTemplate::SpellPPMRate

The documentation for this struct was generated from the following files: