Mercurial > wow > askmrrobot
diff Gear.lua @ 100:c1996b3376ed
tweak to ilvl display info
author | yellowfive |
---|---|
date | Tue, 25 Oct 2016 10:00:17 -0700 |
parents | b8e9664d3229 |
children | 917ac27213d1 |
line wrap: on
line diff
--- a/Gear.lua Tue Oct 25 09:40:20 2016 -0700 +++ b/Gear.lua Tue Oct 25 10:00:17 2016 -0700 @@ -220,10 +220,19 @@ Amr.GetItemInfo(optimalItemLink, function(obj, name, link, quality, iLevel) -- set item name, tooltip, and ilvl obj.nameLabel:SetText(link:gsub("%[", ""):gsub("%]", "")) + + -- not quite right but whatever... close enough + if quality == 6 then + local tmprel = optimalItem.relicBonusIds + optimalItem.relicBonusIds = nil + link = Amr.CreateItemLink(optimalItem) + optimalItem.relicBonusIds = tmprel + end + Amr:SetItemTooltip(obj.nameLabel, link) -- the game's info gives the wrong item level, so we have to scan for it - iLevel = (quality ~= 6 or optimalItem.relicBonusIds) and Amr.GetItemLevel(nil, nil, link) or "" + --iLevel = (quality ~= 6 or optimalItem.relicBonusIds) and Amr.GetItemLevel(nil, nil, link) or "" obj.ilvlLabel:SetText(iLevel) end, { ilvlLabel = lblIlvl, nameLabel = lblItem })