diff --git a/core.lua b/core.lua index 2c764bf..5eb4701 100644 --- a/core.lua +++ b/core.lua @@ -307,7 +307,7 @@ function Aux.round(v) end function Aux.min_bid_increment(current_bid) - return ceil(current_bid * 0.05) + return max(1, floor(current_bid / 100) * 5) end function Aux.price_level_color(pct) diff --git a/info.lua b/info.lua index 676a514..9784dfe 100644 --- a/info.lua +++ b/info.lua @@ -137,7 +137,7 @@ function public.auction(index, query_type) hyperlink = hyperlink, itemstring = item_info.itemstring, item_key = item_id..':'..suffix_id, - search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, type(high_bidder) == 'string' and high_bidder or (high_bidder and 1 or 0), aux_ignore_owner and (Aux.is_player(owner) and 0 or 1) or (owner or '?')}, ':'), + search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, query_type == 'owner' and high_bidder or (high_bidder and 1 or 0), aux_ignore_owner and (Aux.is_player(owner) and 0 or 1) or (owner or '?')}, ':'), name = name, texture = texture, diff --git a/search_frame.lua b/search_frame.lua index 8b31a9e..4a8d9e5 100644 --- a/search_frame.lua +++ b/search_frame.lua @@ -928,6 +928,7 @@ function private.record_bid_updater(record) record.unit_blizzard_bid = record.blizzard_bid / record.aux_quantity record.unit_bid_price = record.bid_price / record.aux_quantity record.high_bidder = 1 + record.search_signature = Aux.util.join({record.item_id, record.suffix_id, record.enchant_id, record.start_price, record.buyout_price, record.bid_price, record.aux_quantity, record.duration, 1, aux_ignore_owner and (Aux.is_player(record.owner) and 0 or 1) or (record.owner or '?')}, ':') private.results_listing:SetDatabase() end end