Refactor autovendor to use config
This commit is contained in:
@@ -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
@@ -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
|
||||
|
Reference in New Issue
Block a user