Update loot filters

This commit is contained in:
2024-03-18 16:31:14 +01:00
parent 5e872647fc
commit 6858332a3a

View File

@@ -369,6 +369,36 @@ local bloodOfSargerasFilter = Filter.new({ ["name"] = getItemName },
if debug then print(string.format("Blood of Sargeras filter fail for %s", provided.name)) end if debug then print(string.format("Blood of Sargeras filter fail for %s", provided.name)) end
return false return false
end) end)
local primalSpiritFilter = Filter.new({ ["name"] = getItemName },
function(slot, provided)
---@cast provided { name: string }
if provided.name == "Primal Spirit" then
if debug then print(string.format("Primal Spirit filter pass for %s", provided.name)) end
return true
end
if debug then print(string.format("Primal Spirit filter fail for %s", provided.name)) end
return false
end)
local apexisCrystalFilter = Filter.new({ ["name"] = getItemName },
function(slot, provided)
---@cast provided { name: string }
if provided.name == "Apexis Crystal" then
if debug then print(string.format("Apexis Crystal filter pass for %s", provided.name)) end
return true
end
if debug then print(string.format("Apexis Crystal filter fail for %s", provided.name)) end
return false
end)
local nethershardFilter = Filter.new({ ["name"] = getItemName },
function(slot, provided)
---@cast provided { name: string }
if provided.name == "Nethershard" then
if debug then print(string.format("Nethershard filter pass for %s", provided.name)) end
return true
end
if debug then print(string.format("Nethershard filter fail for %s", provided.name)) end
return false
end)
local bloodhunerQuarryFilter = Filter.new({ ["name"] = getItemName }, local bloodhunerQuarryFilter = Filter.new({ ["name"] = getItemName },
function(slot, provided) function(slot, provided)
---@cast provided { name: string } ---@cast provided { name: string }
@@ -481,6 +511,9 @@ local filters = {
-- reicpeFilter, -- reicpeFilter,
valueFilter, valueFilter,
arguniteClusterFilter, arguniteClusterFilter,
primalSpiritFilter,
apexisCrystalFilter,
nethershardFilter,
} }
---@class FilterService ---@class FilterService