Implement expansion based filter for professionFilter
This commit is contained in:
@@ -219,6 +219,7 @@ local professionFilter = Filter.new({
|
|||||||
["Enchanting"] = true,
|
["Enchanting"] = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Maybe implement an expansion based filter
|
||||||
if provided.type == "Tradeskill" then
|
if provided.type == "Tradeskill" then
|
||||||
if enabled[provided.subtype] then
|
if enabled[provided.subtype] then
|
||||||
if debug then print(string.format("Profession filter pass for type %s", provided.type)) end
|
if debug then print(string.format("Profession filter pass for type %s", provided.type)) end
|
||||||
@@ -324,20 +325,16 @@ local classGearFilter = Filter.new({
|
|||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end)
|
end)
|
||||||
local arguniteFilter = Filter.new({
|
local arguniteFilter = Filter.new({ ["name"] = getItemName },
|
||||||
["name"] = getItemName,
|
|
||||||
["quality"] = getItemQuality
|
|
||||||
},
|
|
||||||
function(slot, provided)
|
function(slot, provided)
|
||||||
---@cast provided { name: string, quality: number }
|
---@cast provided { name: string }
|
||||||
if string.find(provided.name, "Argunite") and provided.quality > 1 then
|
if provided.name == "Veiled Argunite" then
|
||||||
if debug then
|
if debug then
|
||||||
print(string.format("Argunite filter pass for %s and quality %d", provided.name,
|
print(string.format("Argunite filter pass for %s", provided.name))
|
||||||
provided.quality))
|
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if debug then print(string.format("Argunite filter fail for %s and quality %d", provided.name, provided.quality)) end
|
if debug then print(string.format("Argunite filter fail for %s", provided.name)) end
|
||||||
return false
|
return false
|
||||||
end)
|
end)
|
||||||
local ancientManaFilter = Filter.new({ ["name"] = getItemName },
|
local ancientManaFilter = Filter.new({ ["name"] = getItemName },
|
||||||
|
Reference in New Issue
Block a user