diff --git a/README.md b/README.md index 964b6c9..cd2519f 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,9 @@ This will scan for usable recipes and exclude those with "libram" in the tooltip **armor/cloth/50/intellect/stamina**
This will scan the auction house for cloth armor which has a requirement of at least lvl 50 as well both intellect and stamina stats. +**felcloth/exact/stack/5**
+This will search for auctions of felcloth with exactly 5 items in the stack. + ## Historical Value aux condenses the prices you've scanned during a day (midnight to midnight) into a single value, similarly to retail Auctioneer's "stat-simple" module. diff --git a/tabs/search/filter.lua b/tabs/search/filter.lua index b95d33d..c2ce2ae 100644 --- a/tabs/search/filter.lua +++ b/tabs/search/filter.lua @@ -323,7 +323,7 @@ function set_filter_display_offset(x_offset, y_offset) end function initialize_filter_dropdown() - for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'disenchant-percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'bid-disenchant-percent', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable', 'seller', 'isgear')) do + for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'disenchant-percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'bid-disenchant-percent', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable', 'seller', 'isgear', 'stack')) do UIDropDownMenu_AddButton(T.map( 'text', filter, 'value', filter, diff --git a/util/filter.lua b/util/filter.lua index 42facb8..0922be0 100644 --- a/util/filter.lua +++ b/util/filter.lua @@ -238,7 +238,16 @@ M.filters = { end end, }, - + + ['stack'] = { + input_type = 'number', + validator = function(size) + return function(auction_record) + return auction_record.aux_quantity == size + end + end + }, + } function operator(str)