This commit is contained in:
Manuel Simon Hirsig
2016-06-02 00:08:20 +02:00
parent 80898c10c2
commit 5a4d411fcc
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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,
+1
View File
@@ -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