From 1ab5b8f839938302a424577712a4b4be29d462c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tekkub=20=3Abear=3A=E2=80=82?= Date: Thu, 25 Dec 2014 23:49:10 -0700 Subject: [PATCH] Make grey out work for garrison blueprints --- GnomishVendorShrinker.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GnomishVendorShrinker.lua b/GnomishVendorShrinker.lua index c7bab23..1f5b34a 100644 --- a/GnomishVendorShrinker.lua +++ b/GnomishVendorShrinker.lua @@ -237,6 +237,7 @@ local grads = setmetatable({ [7] = {1,.75,.5,0.75, 1,.75,.5,0}, -- heirloom }, {__index = function(t,i) t[i] = default_grad return default_grad end}) local _, _, _, _, _, _, RECIPE = GetAuctionItemClasses() +local GARRISON_ICON = "inv_garrison_blueprints%d%.blp" local quality_colors = setmetatable({}, {__index = function() return "|cffffffff" end}) for i=0,7 do quality_colors[i] = "|c".. select(4, GetItemQualityColor(i)) end @@ -249,7 +250,7 @@ local function ShowMerchantItem(row, i) local name, link2, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(link) color = quality_colors[quality] - if class == RECIPE then + if class == RECIPE or texture:lower():match(GARRISON_ICON) then if ns.knowns[link] then color = quality_colors[0] else