refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-26 23:53:43 +02:00
parent 5ac44f13d8
commit ac19eba7c6
4 changed files with 75 additions and 9 deletions
+17 -2
View File
@@ -3,8 +3,23 @@ aux 'tooltip' local info, disenchant, cache, money, history = aux.info, aux.dise
_G.aux_tooltip_value = true
game_tooltip_hooks = t
mutable.hooked_setter = nil
mutable.game_tooltip_money = nil
do
local c
hooked_setter
{
get = function() return c end,
set = function(v) c = v end,
}
end
do
local amount
game_tooltip_money
{
get = function() return amount end,
set = function(v) amount = v end,
}
end
function LOAD()
for name, f in game_tooltip_hooks do