aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Database/DBCStructure.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-21 14:55:10 -0600
committermegamage <none@none>2009-03-21 14:55:10 -0600
commit7de6113d908ccec0c8f1585a346bb16c5e7920f7 (patch)
tree38695302bf2f26c917fb50e02365d0c2ad49c46b /src/shared/Database/DBCStructure.h
parent42d5b79eead2608c00c1068a5eec98798333fc42 (diff)
[7509] Use defines instead explcit value for talent rank cound (in general and for pets) Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/shared/Database/DBCStructure.h')
-rw-r--r--src/shared/Database/DBCStructure.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/Database/DBCStructure.h b/src/shared/Database/DBCStructure.h
index 6fb43567a3a..ec60105a230 100644
--- a/src/shared/Database/DBCStructure.h
+++ b/src/shared/Database/DBCStructure.h
@@ -1408,13 +1408,16 @@ struct SummonPropertiesEntry
uint32 Flags; // 5
};
+#define MAX_TALENT_RANK 5
+#define MAX_PET_TALENT_RANK 3 // use in calculations, expected <= MAX_TALENT_RANK
+
struct TalentEntry
{
uint32 TalentID; // 0
uint32 TalentTab; // 1 index in TalentTab.dbc (TalentTabEntry)
uint32 Row; // 2
uint32 Col; // 3
- uint32 RankID[5]; // 4-8
+ uint32 RankID[MAX_TALENT_RANK]; // 4-8
// 9-12 not used, always 0, maybe not used high ranks
uint32 DependsOn; // 13 index in Talent.dbc (TalentEntry)
// 14-15 not used