module refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-10-14 01:55:38 +02:00
parent 2660b44861
commit cc7139c0e2
30 changed files with 326 additions and 343 deletions
+2 -2
View File
@@ -288,7 +288,7 @@ function public.tooltip(setter)
return tooltip, AuxTooltip.money
end
function private.item_charges(tooltip)
function item_charges(tooltip)
for _, line in tooltip do
local pattern = '^' .. gsub(gsub(ITEM_SPELL_CHARGES_P1, '%%d', '(%%d+)'), '%%%d+%$d', '(%%d+)') .. '$'
@@ -406,7 +406,7 @@ function public.item_quality_index(item_quality)
end
end
function public.inventory.get()
function public.get_inventory()
local bag, slot = 0, 0
return function()
if not GetBagName(bag) or slot >= GetContainerNumSlots(bag) then