DB/GemProperties: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
m (add missing gem colors)
Line 1: Line 1:
{{Template:Sandbox/VersionRange|min_expansionlevel=2}}
{{Template:Sandbox/VersionRange|min_expansionlevel=2}}


// really a bitmask, but meta cannot be mixed with other colors
  enum GemType {
  enum GemType {
   meta = 1,
   meta = 1,
   red = 2,
   red = 2,
   yellow = 4,
   yellow = 4,
  orange = 6,    // red | yellow
   blue = 8,
   blue = 8,
  purple = 10,    // red | blue
  green = 12,    // yellow | blue
  prismatic = 14  // red | yellow | blue
  };
  };



Revision as of 13:04, 2 September 2021

≥ BC

// really a bitmask, but meta cannot be mixed with other colors
enum GemType {
  meta = 1,
  red = 2,
  yellow = 4,
  orange = 6,     // red | yellow
  blue = 8,
  purple = 10,    // red | blue
  green = 12,     // yellow | blue
  prismatic = 14  // red | yellow | blue
};

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;
};