DB/GemProperties: Difference between revisions

From wowdev
Jump to navigation Jump to search
(New page: ==Header Info == Records...................163 Fields......................5 Record Size................20 String Block Size...........1 ==Structure== '''Column Field Type Notes...)
 
mNo edit summary
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Header Info ==
{{Template:Sandbox/VersionRange|min_expansionlevel=2}}
Records...................163
Fields......................5
Record Size................20
String Block Size...........1


==Structure==
// really a bitmask, but meta cannot be mixed with other colors
'''Column Field Type Notes'''
enum GemType {
1 ID Integer
  meta = 0x1,
2 iRefID_[[SpellItemEnchantment.dbc|SpellItemEnchantment]] Integer
  red = 0x2,
3 Unknown Boolean* (Perhaps a 2nd iRefID_[[SpellItemEnchantment.dbc|SpellItemEnchantment]])
  yellow = 0x4,
  4 Unknown Boolean* (Perhaps a 3rd iRefID_[[SpellItemEnchantment.dbc|SpellItemEnchantment]])
  blue = 0x8,
  5 color BitMask Gem Color (a combination of Meta, Red, Yellow and Blue).
  orange = red | yellow,            // 0x6
  purple = red | blue,              // 0xa
  green = yellow | blue,            // 0xc
  prismatic = red | yellow | blue, // 0xe
  };


Retrieved from "http://www.sourcepeek.com/wiki/GemProperties.dbc"
==unknown, probably bc==
struct GemPropertiesRec {
  uint32_t m_id;
  {{Type/foreign_key|table=SpellItemEnchantment}} m_enchant_id;
  uint32_t m_maxcount_inv;
  uint32_t m_maxcount_item;
  uint32_t m_type;
};
 
==unknown probably mop, 6.0.1.18179==
struct GemPropertiesRec {
  uint32_t m_id;
  {{Type/foreign_key|table=SpellItemEnchantment}} m_enchant_id;
  uint32_t m_maxcount_inv;
  uint32_t m_maxcount_item;
  uint32_t m_type;
  uint32_t m_min_item_level;
};
 
[[Category:DBC]]
[[Category:DBC_WotLK]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]

Latest revision as of 23:46, 8 September 2021

≥ BC

// really a bitmask, but meta cannot be mixed with other colors
enum GemType {
  meta = 0x1,
  red = 0x2,
  yellow = 0x4,
  blue = 0x8,
  orange = red | yellow,            // 0x6 
  purple = red | blue,              // 0xa
  green = yellow | blue,            // 0xc
  prismatic = red | yellow | blue,  // 0xe
};

unknown, probably bc

struct GemPropertiesRec {
  uint32_t m_id;
  foreign_key<uint32_t, &SpellItemEnchantmentRec::m_ID> m_enchant_id;
  uint32_t m_maxcount_inv;
  uint32_t m_maxcount_item;
  uint32_t m_type;
};

unknown probably mop, 6.0.1.18179

struct GemPropertiesRec {
  uint32_t m_id;
  foreign_key<uint32_t, &SpellItemEnchantmentRec::m_ID> m_enchant_id;
  uint32_t m_maxcount_inv;
  uint32_t m_maxcount_item;
  uint32_t m_type;
  uint32_t m_min_item_level;
};