Refactor autovendor to use config
This commit is contained in:
		@@ -10,6 +10,6 @@ function(allstates, e)
 | 
				
			|||||||
                aura_env.FilterService.Run(container, slot)
 | 
					                aura_env.FilterService.Run(container, slot)
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
        return true 
 | 
					        return true
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -160,6 +160,7 @@ local grayFilter = Filter.new({
 | 
				
			|||||||
        ["quality"] = getItemQuality
 | 
					        ["quality"] = getItemQuality
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    function(container, slot, provided)
 | 
					    function(container, slot, provided)
 | 
				
			||||||
 | 
					        if not aura_env.config.grayFilter then return false end
 | 
				
			||||||
        if provided.quality == 0 then
 | 
					        if provided.quality == 0 then
 | 
				
			||||||
            return true
 | 
					            return true
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
@@ -172,8 +173,9 @@ local gearFilter = Filter.new({
 | 
				
			|||||||
        ["equipLoc"] = getItemEquipLocation
 | 
					        ["equipLoc"] = getItemEquipLocation
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    function(container, slot, provided)
 | 
					    function(container, slot, provided)
 | 
				
			||||||
        local ilvlThreshold = 850
 | 
					        if not aura_env.config.gearFilter then return false end
 | 
				
			||||||
        local sellBoe = false
 | 
					        local ilvlThreshold = aura_env.config.gearFilterIlvlFilterThreshold
 | 
				
			||||||
 | 
					        local sellBoe = aura_env.config.gearFilterSellBoe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if provided.type == "Armor"
 | 
					        if provided.type == "Armor"
 | 
				
			||||||
            or provided.type == "Weapon"
 | 
					            or provided.type == "Weapon"
 | 
				
			||||||
@@ -227,7 +229,7 @@ end
 | 
				
			|||||||
---@type table<Filter>
 | 
					---@type table<Filter>
 | 
				
			||||||
local filters = {
 | 
					local filters = {
 | 
				
			||||||
    grayFilter,
 | 
					    grayFilter,
 | 
				
			||||||
    -- gearFilter
 | 
					    gearFilter
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---@class FilterService
 | 
					---@class FilterService
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user