You've already forked GnomishVendorShrinker
Grey out known heirlooms on 6.1
This commit is contained in:
20
externals/itemid.lua
vendored
Normal file
20
externals/itemid.lua
vendored
Normal 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
4
externals/ptr.lua
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
local myname, ns = ...
|
||||
|
||||
ns.is_six_one = GetBuildInfo() == "6.1.0"
|
Reference in New Issue
Block a user