added partial stack posting option

This commit is contained in:
Manuel Simon Hirsig
2016-02-05 19:08:01 +01:00
parent 52c3dbf56e
commit 95bff4e953
6 changed files with 142 additions and 93 deletions
+4 -1
View File
@@ -46,6 +46,8 @@ function public.container_item(bag, slot)
local texture, count, locked, quality, readable, lootable = GetContainerItemInfo(bag, slot) -- quality not working?
local tooltip = public.tooltip(function(tt) tt:SetBagItem(bag, slot) end)
local charges = private.item_charges(tooltip)
local aux_quantity = charges or count
return {
item_id = item_id,
@@ -65,6 +67,7 @@ function public.container_item(bag, slot)
slot = item_info.slot,
quality = item_info.quality,
max_stack = item_info.max_stack,
aux_quantity = aux_quantity,
count = count,
locked = locked,
@@ -72,7 +75,7 @@ function public.container_item(bag, slot)
lootable = lootable,
tooltip = tooltip,
charges = private.item_charges(tooltip),
charges = charges,
}
end