# HG changeset patch # User yellowfive # Date 1477414817 25200 # Node ID c1996b3376ed69f772dfa06c58669d7c1ecbbec8 # Parent 9322285ee6399effb77a028609f1e7d45de5e69a tweak to ilvl display info diff -r 9322285ee639 -r c1996b3376ed Gear.lua --- 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 })