working on module refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-10-09 01:48:27 +02:00
parent cab2733300
commit 945ff6dd87
31 changed files with 225 additions and 236 deletions
+9 -7
View File
@@ -1,10 +1,12 @@
aux_disenchant = module
module'aux.disenchant'
include (green_t)
include (aux)
include (aux_util)
include (aux_control)
include (aux_util_color)
include'green_t'
include'aux'
include'aux.util'
include'aux.control'
include'aux.util.color'
local history = M'aux.history'
local UNCOMMON, RARE, EPIC = 2, 3, 4
@@ -75,7 +77,7 @@ local WEAPON = S(
function public.value(slot, quality, level)
local expectation
for _, event in distribution(slot, quality, level) do
local value = aux_history.value(event.item_id .. ':' .. 0)
local value = history.value(event.item_id .. ':' .. 0)
if not value then
return
else