considering charges in the stat modules
This commit is contained in:
@@ -81,6 +81,7 @@ function public.auction(index, type)
|
||||
local name, texture, count, quality, usable, level, min_bid, min_increment, buyout_price, current_bid, high_bidder, owner, sale_status = GetAuctionItemInfo(type, index)
|
||||
local duration = GetAuctionItemTimeLeft(type, index)
|
||||
local tooltip = public.tooltip(function(tt) tt:SetAuctionItem(type, index) end)
|
||||
local charges = private.item_charges(tooltip)
|
||||
|
||||
return {
|
||||
index = index,
|
||||
@@ -114,7 +115,8 @@ function public.auction(index, type)
|
||||
duration = duration,
|
||||
usable = usable,
|
||||
tooltip = tooltip,
|
||||
charges = private.item_charges(tooltip),
|
||||
charges = charges,
|
||||
aux_quantity = charges or count,
|
||||
|
||||
EnhTooltip_info = {
|
||||
name = name,
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ function public.process_auction(auction_info)
|
||||
private.push_data()
|
||||
end
|
||||
|
||||
local buyout = auction_info.buyout_price / auction_info.count
|
||||
local buyout = auction_info.buyout_price / auction_info.aux_quantity
|
||||
|
||||
local item_record = public.read_record(auction_info.item_key)
|
||||
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ function public.process_auction(auction_info)
|
||||
|
||||
private.read_current_record(auction_info.item_key)
|
||||
|
||||
local buyout = auction_info.buyout_price / auction_info.count
|
||||
local buyout = auction_info.buyout_price / auction_info.aux_quantity
|
||||
|
||||
if private.current_record.count == 0 then
|
||||
private.current_record.step = ceil(buyout / 100)
|
||||
|
||||
Reference in New Issue
Block a user