bid fix
This commit is contained in:
@@ -307,7 +307,7 @@ function Aux.round(v)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Aux.min_bid_increment(current_bid)
|
function Aux.min_bid_increment(current_bid)
|
||||||
return ceil(current_bid * 0.05)
|
return max(1, floor(current_bid / 100) * 5)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Aux.price_level_color(pct)
|
function Aux.price_level_color(pct)
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ function public.auction(index, query_type)
|
|||||||
hyperlink = hyperlink,
|
hyperlink = hyperlink,
|
||||||
itemstring = item_info.itemstring,
|
itemstring = item_info.itemstring,
|
||||||
item_key = item_id..':'..suffix_id,
|
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,
|
name = name,
|
||||||
texture = texture,
|
texture = texture,
|
||||||
|
|||||||
@@ -928,6 +928,7 @@ function private.record_bid_updater(record)
|
|||||||
record.unit_blizzard_bid = record.blizzard_bid / record.aux_quantity
|
record.unit_blizzard_bid = record.blizzard_bid / record.aux_quantity
|
||||||
record.unit_bid_price = record.bid_price / record.aux_quantity
|
record.unit_bid_price = record.bid_price / record.aux_quantity
|
||||||
record.high_bidder = 1
|
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()
|
private.results_listing:SetDatabase()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user