DB/GemProperties: Difference between revisions

From wowdev
Jump to navigation Jump to search
m (add missing gem colors)
mNo edit summary
 
Line 3: Line 3:
  // really a bitmask, but meta cannot be mixed with other colors
  // really a bitmask, but meta cannot be mixed with other colors
  enum GemType {
  enum GemType {
   meta = 1,
   meta = 0x1,
   red = 2,
   red = 0x2,
   yellow = 4,
   yellow = 0x4,
   orange = 6,    // red | yellow
  blue = 0x8,
  blue = 8,
   orange = red | yellow,           // 0x6
   purple = 10,   // red | blue
   purple = red | blue,             // 0xa
   green = 12,     // yellow | blue
   green = yellow | blue,           // 0xc
   prismatic = 14  // red | yellow | blue
   prismatic = red | yellow | blue,  // 0xe
  };
  };



Latest revision as of 22: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;
};