Mercurial > wow > ouroloot
diff core.lua @ 11:952c3ac0e783
GetItemQualityColor change and TOC bump for 4.2
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Tue, 28 Jun 2011 19:18:07 +0000 |
parents | 67b8537e8432 |
children | a91cd74d8df9 |
line wrap: on
line diff
--- a/core.lua Tue Jun 28 07:36:26 2011 +0000 +++ b/core.lua Tue Jun 28 19:18:07 2011 +0000 @@ -134,12 +134,9 @@ requesting = nil -- for prompting for additional rebroadcasters - thresholds, quality_hexes = {}, {} + thresholds = {} for i = 0,6 do - local hex = _G.select(4,_G.GetItemQualityColor(i)) - local desc = _G["ITEM_QUALITY"..i.."_DESC"] - quality_hexes[i] = hex - thresholds[i] = hex .. desc .. "|r" + thresholds[i] = _G.ITEM_QUALITY_COLORS[i].hex .. _G["ITEM_QUALITY"..i.."_DESC"] .. "|r" end _G.setfenv (1, _G) @@ -170,7 +167,7 @@ function addon.format_hypertext (code, text, color) return hypertext_format_str:format (code, - type(color)=='number' and addon.quality_hexes[color] or color, + type(color)=='number' and ITEM_QUALITY_COLORS[color].hex or color, text) end @@ -524,6 +521,7 @@ return end end + -- Throttle the checks fired by common events. if docheck and not InCombatLockdown() then now = time() if difftime(now,lastevent) > 45 then