deposit update
This commit is contained in:
@@ -27,7 +27,7 @@ end
|
|||||||
|
|
||||||
function Aux.info.auction_sell_item()
|
function Aux.info.auction_sell_item()
|
||||||
local name, texture, stack_size, quality, usable, vendor_price, vendor_price_per_unit, max_stack, total_count = GetAuctionSellItemInfo()
|
local name, texture, stack_size, quality, usable, vendor_price, vendor_price_per_unit, max_stack, total_count = GetAuctionSellItemInfo()
|
||||||
local base_deposit = CalculateAuctionDeposit(120) / stack_size
|
local deposit_factor = CalculateAuctionDeposit(120) / vendor_price
|
||||||
|
|
||||||
if name then
|
if name then
|
||||||
auction_sell_item = {
|
auction_sell_item = {
|
||||||
@@ -40,7 +40,7 @@ function Aux.info.auction_sell_item()
|
|||||||
vendor_price_per_unit = vendor_price_per_unit,
|
vendor_price_per_unit = vendor_price_per_unit,
|
||||||
max_stack = max_stack, -- TODO not working??
|
max_stack = max_stack, -- TODO not working??
|
||||||
total_count = total_count,
|
total_count = total_count,
|
||||||
base_deposit = base_deposit,
|
deposit_factor = deposit_factor,
|
||||||
}
|
}
|
||||||
|
|
||||||
auction_sell_item.tooltip = Aux.info.tooltip(function(tt) tt:SetAuctionSellItem() end)
|
auction_sell_item.tooltip = Aux.info.tooltip(function(tt) tt:SetAuctionSellItem() end)
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ function update_recommendation()
|
|||||||
|
|
||||||
AuxSellRefreshButton:Enable()
|
AuxSellRefreshButton:Enable()
|
||||||
|
|
||||||
MoneyFrame_Update("AuctionsDepositMoneyFrame", current_auction.base_deposit * AuxSellStackCountSlider:GetValue() * (current_auction.has_charges and 1 or get_stack_size_slider_value()) * AuctionFrameAuctions.duration / 120)
|
MoneyFrame_Update("AuctionsDepositMoneyFrame", floor(current_auction.vendor_price_per_unit * current_auction.base_deposit * (current_auction.has_charges and 1 or get_stack_size_slider_value()) * AuxSellStackCountSlider:GetValue()) * AuctionFrameAuctions.duration / 120)
|
||||||
|
|
||||||
if auxSellEntries[current_auction.name] and auxSellEntries[current_auction.name].selected then
|
if auxSellEntries[current_auction.name] and auxSellEntries[current_auction.name].selected then
|
||||||
if not auxSellEntries[current_auction.name].created or GetTime() - auxSellEntries[current_auction.name].created > 1800 then
|
if not auxSellEntries[current_auction.name].created or GetTime() - auxSellEntries[current_auction.name].created > 1800 then
|
||||||
@@ -312,7 +312,8 @@ function Aux.sell.set_auction(bag, slot)
|
|||||||
texture = container_item.texture,
|
texture = container_item.texture,
|
||||||
class = container_item.type,
|
class = container_item.type,
|
||||||
subclass = container_item.subtype,
|
subclass = container_item.subtype,
|
||||||
base_deposit = auction_sell_item.base_deposit,
|
deposit_factor = auction_sell_item.deposit_factor,
|
||||||
|
vendor_price_per_unit = auction_sell_item.vendor_price_per_unit,
|
||||||
has_charges = container_item.charges ~= nil,
|
has_charges = container_item.charges ~= nil,
|
||||||
availability = availability(container_item.name)
|
availability = availability(container_item.name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user