Refactor autovendor to use config

This commit is contained in:
2024-09-22 17:06:32 +02:00
parent a1743dc37c
commit b8816a9961
3 changed files with 7 additions and 5 deletions

View File

@@ -10,6 +10,6 @@ function(allstates, e)
aura_env.FilterService.Run(container, slot)
end
end
return true
return true
end
end

File diff suppressed because one or more lines are too long

View File

@@ -160,6 +160,7 @@ local grayFilter = Filter.new({
["quality"] = getItemQuality
},
function(container, slot, provided)
if not aura_env.config.grayFilter then return false end
if provided.quality == 0 then
return true
end
@@ -172,8 +173,9 @@ local gearFilter = Filter.new({
["equipLoc"] = getItemEquipLocation
},
function(container, slot, provided)
local ilvlThreshold = 850
local sellBoe = false
if not aura_env.config.gearFilter then return false end
local ilvlThreshold = aura_env.config.gearFilterIlvlFilterThreshold
local sellBoe = aura_env.config.gearFilterSellBoe
if provided.type == "Armor"
or provided.type == "Weapon"
@@ -227,7 +229,7 @@ end
---@type table<Filter>
local filters = {
grayFilter,
-- gearFilter
gearFilter
}
---@class FilterService