DB/SpellRange: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
Line 9: Line 9:
  };
  };


==4.0.3.13329==
==3.3.5.12340 - 6.0.1.18179==


{| style="background:#FCFCFC; color:black"
{| style="background:#FCFCFC; color:black"
Line 28: Line 28:
| 5  || maxRangeFriend || Float ||
| 5  || maxRangeFriend || Float ||
|-  
|-  
| 6  || Type || Integer ||
| 6  || Flags || Integer || 1 = Combat range, 2 = Ranged spell
|- style="background:#E0E0E0;"
| 7  || Description || Integer || Long name / description
|-
| 8  || ShortName || Integer ||
|}
 
==3.3.5.12340==
 
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Column
! width="180" | Field
! width="80" | Type
! width="500" | Notes
|- style="background:#E0E0E0;"
| 1  || ID || Integer ||
|-
| 2 || minRangeHostile || Float ||
|- style="background:#E0E0E0;"
| 3  || minRangeFriend || Float ||
|-
| 4  || maxRangeHostile || Float ||
|- style="background:#E0E0E0;"
| 5  || maxRangeFriend || Float ||
|-
| 6  || Type || Integer ||
|- style="background:#E0E0E0;"
|- style="background:#E0E0E0;"
| 7 - 23  || Description (+[[Localization]]) || Integer || Long name / description
| 7 - 23  || Description (+[[Localization]]) || Integer || Long name / description
Line 61: Line 35:
|}
|}


 
===Struct===
==3.3.5.12340 - 6.0.1.18179==
  struct SpellRangeRec {
  struct SpellRangeRec {
   uint32_t m_ID;
   uint32_t m_ID;

Revision as of 14:25, 9 October 2017

0.5.3.3368, 1.12.1.5875, 2.4.3.8606

struct SpellRangeRec {
  uint32_t m_ID;
  float m_rangeMin;
  float m_rangeMax;
  uint32_t m_flags;        // &:1 - Use combat reach range Spell_C_GetMinMaxRange
  langstringref m_displayName_lang;
  langstringref m_displayNameShort_lang;
};

3.3.5.12340 - 6.0.1.18179

Column Field Type Notes
1 ID Integer
2 minRangeHostile Float
3 minRangeFriend Float
4 maxRangeHostile Float
5 maxRangeFriend Float
6 Flags Integer 1 = Combat range, 2 = Ranged spell
7 - 23 Description (+Localization) Integer Long name / description
24 - 40 Short Name (+Localization) Integer Sort of an identification ?

Struct

struct SpellRangeRec {
  uint32_t m_ID;
  float m_rangeMin[2];
  float m_rangeMax[2];
  uint32_t m_flags;         // &1: Combat range, &2: Ranged player spells i.e. aimed shot, fireball
  langstringref m_displayName_lang;
  langstringref m_displayNameShort_lang;
};