DB/CreatureFamily: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
Line 10: Line 10:


==Unknown, apparently between alpha and end of vanilla==
==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 {
  struct CreatureFamilyRec {
   uint32_t m_ID;
   uint32_t m_ID;
   float m_minScale;                                                 // {{Unverified|movement or attack speed modifier?}}
   float m_minScale;
   uint32_t m_minScaleLevel;                                         // {{Unverified|iRefID_[[PetPersonality.dbc|PetPersonality]] Integer Base data columns 11-19.}}
   uint32_t m_minScaleLevel;
   float m_maxScale;                                                 // {{Unverified|movement or attack speed modifier?}}
   float m_maxScale;
   uint32_t m_maxScaleLevel;                                         // {{Unverified|is player controlled?}}
   uint32_t m_maxScaleLevel;
   {{Type/foreign_key|table=SkillLine}} m_skillLine[2];       // {{Unverified|second one: is tameable?}}
   {{Type/foreign_key|table=SkillLine}} m_skillLine[2];
   {{Type/foreign_key_mask|table=ItemPetFood}} m_petFoodMask;
   {{Type/foreign_key_mask|table=ItemPetFood}} m_petFoodMask;
   {{Type|langstringref}} m_name_lang;
   {{Type|langstringref}} m_name_lang;

Revision as of 22:03, 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

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;
  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(?)