Commit 3d5e4663 authored by Robin Schoonover's avatar Robin Schoonover

In map quest log, fix item id, as it was returning an empty link in the normal way.

parent c6e265c0
......@@ -5,7 +5,9 @@ addon:HookTipScript("OnTooltipSetItem", function(self)
local name, link = self:GetItem()
if link then
local _,_,id = strfind(link, "|Hitem:(%d+):")
addon:AddIDLine(self, "Item", id)
if id ~= "0" then
addon:AddIDLine(self, "Item", id)
end
end
end)
......@@ -110,7 +112,17 @@ addon:HookTip("SetQuestCurrency", function(self, type, idx)
end)
addon:HookTip("SetQuestLogCurrency", function(self, type, idx)
-- TODO GetQuestCurrencyInfo(type, idx) => name, texture, count
-- TODO GetQuestLogRewardCurrencyInfo(idx) => name, texture, count
end)
addon:HookTip("SetQuestLogItem", function(self, ...)
local link = GetQuestLogItemLink(...)
if link then
local _, _, id = strfind(link, "|Hitem:(%d+):")
if id ~= "0" then
addon:AddIDLine(self, "Item", id)
end
end
end)
addon:HookTip("SetToyByItemID", function(tip, itemid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment