module refactoring
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user