Enum.ItemQuality

From Warcraft Wiki
Jump to navigation Jump to search
Enum.ItemQuality
Value Field GlobalString (enUS)
0 Poor Poor ITEM_QUALITY0_DESC
1 Common Common ITEM_QUALITY1_DESC
2 Uncommon Uncommon ITEM_QUALITY2_DESC
3 Rare Rare ITEM_QUALITY3_DESC
4 Epic Epic ITEM_QUALITY4_DESC
5 Legendary Legendary ITEM_QUALITY5_DESC
6 Artifact Artifact ITEM_QUALITY6_DESC
7 Heirloom Heirloom ITEM_QUALITY7_DESC
8 WoWToken WoW Token ITEM_QUALITY8_DESC

Details

  • Quality is the third value returned by GetItemInfo()
  • The quality colors can be found using the ITEM_QUALITY_COLORS table or calling GetItemQualityColor()
    Each entry in ITEM_QUALITY_COLORS is a table with four keys:
    • r, g, b: the decimal RGB values (0.0 through 1.0)
    • hex: the escape sequence for that color, including the leading |cff. This is intended to be used as a prefix for colored strings. (Don't forget to append a trailing |r.)

Patch changes

Shadowlands Patch 9.0.1 (2020-10-13): Renamed Standard, Good, Superior fields to Common, Uncommon, Rare