deposit calculation as total for all stacks implemented

This commit is contained in:
Manuel Simon Hirsig
2015-10-05 23:56:53 +02:00
parent 660762f5a6
commit 30448813df
2 changed files with 29 additions and 19 deletions
+5 -3
View File
@@ -26,17 +26,19 @@ function Aux.info.container_item(bag, slot)
end
function Aux.info.auction_sell_item()
local name, texture, count, quality, usable, vendor_price, vendor_price_per_unit, max_stack, total_count = GetAuctionSellItemInfo()
auction_sell_item = {
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
auction_sell_item = name and {
name = name,
texture = texture,
count = count,
stack_size = stack_size,
quality = quality,
usable = usable,
vendor_price = vendor_price,
vendor_price_per_unit = vendor_price_per_unit,
max_stack = max_stack,
total_count = total_count,
base_deposit = base_deposit,
}
auction_sell_item.tooltip = Aux.info.tooltip(function(tt) tt:SetAuctionSellItem() end)