DB/CreatureFamily: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Added pet food values for ease)
mNo edit summary
Line 1: Line 1:
==Classic==
==0.5.3.3368==
===0.5.3.3368===
====Struct====
  struct CreatureFamilyRec {
  struct CreatureFamilyRec {
   uint32_t m_ID;
   uint32_t m_ID;
Line 8: Line 6:
   float m_maxScale;
   float m_maxScale;
   uint32_t m_maxScaleLevel;
   uint32_t m_maxScaleLevel;
   uint32_t m_skillLine[2];
   {{Type/foreign_key|table=SkillLine}} m_skillLine[2];
  };
  };


==Wrath==
==Unknown, apparently between alpha and end of vanilla==
===3.3.5.12340===
Note that the comments are highly likely absolute bogus and stem from an very early time of modding.
====Table====
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Column
! width="180" | Field
! width="80" | Type
! width="500" | Notes
|-
| 1 || ID || Integer ||
|-
| 2 || minScale || Float ||
|-
| 3 || minScaleLevel || Integer ||
|-
| 4 || maxScale || Float ||
|-
| 5 || maxScaleLevel || Integer ||
|- style="background:#F0F8FF;"
| 6 || [[SkillLine.dbc|SkillLine]] || iRefID ||
|- style="background:#F0F8FF;"
| 7 || [[SkillLine.dbc|SkillLine]] || iRefID ||
|- style="background:#F0F8FF;"
| 8 || [[ItemPetFood.dbc|ItemPetFood]] || iRefMask ||
|-
| 9 || petTalentType || Integer ||
|-
| 10 || categoryEnumID || Integer ||
|-
| 11 || Name || [[Loc]] ||
|-
| 28 || IconFile || String || "Interface\Icons\Ability_[a-z_]"
|}


==Warlords==
struct CreatureFamilyRec {
===1.12.1.5875, 6.0.1.18179===
  uint32_t m_ID;
====Struct====
  float m_minScale;                                                // {{Unverified|movement or attack speed modifier?}}
  uint32_t m_minScaleLevel;                                        // {{Unverified|iRefID_[[PetPersonality.dbc|PetPersonality]] Integer Base data columns 11-19.}}
  float m_maxScale;                                                // {{Unverified|movement or attack speed modifier?}}
  uint32_t m_maxScaleLevel;                                        // {{Unverified|is player controlled?}}
  {{Type/foreign_key|table=SkillLine}} m_skillLine[2];      // {{Unverified|second one: is tameable?}}
  {{Type/foreign_key_mask|table=ItemPetFood}} m_petFoodMask;
  {{Type|langstringref}} m_name_lang;
  {{Type|stringref}} m_iconFile;                                            // "Interface\Icons\Ability_[a-z_]"
};
 
==1.12.1.5875, 3.3.5.12340, 6.0.1.18179==
  struct CreatureFamilyRec {
  struct CreatureFamilyRec {
   uint32_t m_ID;
   uint32_t m_ID;
Line 55: Line 31:
   float m_maxScale;
   float m_maxScale;
   uint32_t m_maxScaleLevel;
   uint32_t m_maxScaleLevel;
   uint32_t m_skillLine[2];
   {{Type/foreign_key|table=SkillLine}} m_skillLine[2];
   uint32_t m_petFoodMask;
   {{Type/foreign_key_mask|table=ItemPetFood}} m_petFoodMask;
   uint32_t m_petTalentType;
   uint32_t m_petTalentType;
   uint32_t m_categoryEnumID;
   uint32_t m_categoryEnumID;
   {{Template:Type|langstringref}} m_name_lang;
   {{Type|langstringref}} m_name_lang;
   {{Template:Type|stringref}} m_iconFile;
   {{Type|stringref}} m_iconFile;                                           // "Interface\Icons\Ability_[a-z_]"
  };
  };
==Unknown Build==
===Table===
'''Column Field Type Notes'''
1 ID Integer
2 Unknown Float Q: movement or attack speed modifier?
3 iRefID_[[PetPersonality.dbc|PetPersonality]] Integer Base data columns 11-19.
4 Unknown Float Q: movement or attack speed modifier?
5 Unknown Integer Q: is player controlled?
6 iRefID_[[SkillLine.dbc|SkillLine]] Integer
7 Unknown Integer Q: is tameable?
8 iRefMask_[[ItemPetFood.dbc|ItemPetFood]] BitMask
9-17 sRefName String + [[Loc]]
18 sRefPath String path: "Interface\Icons\Ability_[a-z_]"


==Pet Food Mask==
==Pet Food Mask==

Revision as of 17:33, 1 January 2020

0.5.3.3368

struct CreatureFamilyRec {
  uint32_t m_ID;
  float m_minScale;
  uint32_t m_minScaleLevel;
  float m_maxScale;
  uint32_t m_maxScaleLevel;
  foreign_key<uint32_t, &SkillLineRec::m_ID> m_skillLine[2];
};

Unknown, apparently between alpha and end of vanilla

Note that the comments are highly likely absolute bogus and stem from an very early time of modding.

struct CreatureFamilyRec {
  uint32_t m_ID;
  float m_minScale;                                                 // movement or attack speed modifier?
  uint32_t m_minScaleLevel;                                         // iRefID_PetPersonality 	Integer 	Base data columns 11-19.
  float m_maxScale;                                                 // movement or attack speed modifier?
  uint32_t m_maxScaleLevel;                                         // is player controlled?
  foreign_key<uint32_t, &SkillLineRec::m_ID> m_skillLine[2];       // second one: is tameable?
  foreign_key_mask<uint32_t, &ItemPetFoodRec::m_ID> m_petFoodMask;
  langstringref m_name_lang;
  stringref m_iconFile;                                            // "Interface\Icons\Ability_[a-z_]" 
};

1.12.1.5875, 3.3.5.12340, 6.0.1.18179

struct CreatureFamilyRec {
  uint32_t m_ID;
  float m_minScale;
  uint32_t m_minScaleLevel;
  float m_maxScale;
  uint32_t m_maxScaleLevel;
  foreign_key<uint32_t, &SkillLineRec::m_ID> m_skillLine[2];
  foreign_key_mask<uint32_t, &ItemPetFoodRec::m_ID> m_petFoodMask;
  uint32_t m_petTalentType;
  uint32_t m_categoryEnumID;
  langstringref m_name_lang;
  stringref m_iconFile;                                            // "Interface\Icons\Ability_[a-z_]" 
};

Pet Food Mask

Hex 	Decimal  Food 
0x001 	1 	 Meat
0x002 	2 	 Fish
0x004 	4 	 Cheese
0x008 	8 	 Bread
0x010 	16 	 Fungus
0x020 	32 	 Fruit
0x040 	64 	 Raw meat
0x080 	128 	 Raw fish
0x100 	256 	 Mechanical parts(?)