refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-07-15 19:09:09 +02:00
parent e13e9f003e
commit a9290f2885
8 changed files with 101 additions and 130 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
local private, public = {}, {}
Aux.disenchant = public
local m, private, public = Aux.module'disenchant'
function public.source(item_id)
@@ -68,7 +67,7 @@ local UNCOMMON, RARE, EPIC = 2, 3, 4
function public.value(slot, quality, level)
local expectation
for _, event in public.distribution(slot, quality, level) do
for _, event in m.distribution(slot, quality, level) do
local value = Aux.history.value(event.item_id..':'..0)
if not value then
return