big module refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-19 11:18:31 +02:00
parent 337bc19578
commit 667990f7d8
19 changed files with 157 additions and 192 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ function public.present(...)
end
end
function public.unpack(array, ...)
function public.expand(array, ...)
local table = {}
for i=1,arg.n do
table[arg[i]] = array[i]
@@ -221,7 +221,7 @@ function public.bag_type(bag)
return 1
end
for link in aux.util.present(GetInventoryItemLink('player', ContainerIDToInventoryID(bag))) do
local item_id = aux.info.parse_hyperlink(link)
local item_id = aux.info.parse_link(link)
local item_info = aux.info.item(item_id)
return aux.info.item_subclass_index(3, item_info.subclass)
end