Grey out known heirlooms on 6.1

This commit is contained in:
tekkub :bear: 
2015-01-26 02:26:17 -07:00
parent 340a2b2667
commit 7a9f2e658b
6 changed files with 49 additions and 6 deletions

20
externals/itemid.lua vendored Normal file
View File

@ -0,0 +1,20 @@
local myname, ns = ...
-- Creates a memoizing table that converts an itemlink string into an itemID int
ns.ids = setmetatable({}, {
__index = function(t,i)
if type(i) == "number" then
t[i] = i
return i
elseif type(i) ~= "string" then
t[i] = false
return
end
local id = tonumber(i:match("item:(%d+)"))
t[i] = id
return id
end,
})

4
externals/ptr.lua vendored Normal file
View File

@ -0,0 +1,4 @@
local myname, ns = ...
ns.is_six_one = GetBuildInfo() == "6.1.0"