beginnings of vendor price functionality

This commit is contained in:
Manuel Simon Hirsig
2016-03-20 12:57:48 +01:00
parent d3b1c37af6
commit 4e1252b625
5 changed files with 32 additions and 3 deletions
+10
View File
@@ -57,6 +57,16 @@ function Aux.util.inventory_iterator()
end
end
function public.loop_inventory(f)
for bag = 0, 4 do
if GetBagName(bag) then
for slot = 1, GetContainerNumSlots(bag) do
f(bag, slot)
end
end
end
end
function public.safe_index(...)
local target = arg[1]