module refactoring

This commit is contained in:
Simon Hirsig
2017-11-01 15:01:41 +01:00
parent 9989ceb42f
commit 8823b34904
36 changed files with 669 additions and 646 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
module 'aux.util.money'
include 'T'
include 'aux'
local T = require 'T'
M.GOLD_TEXT = '|cffffd70ag|r'
M.SILVER_TEXT = '|cffc7c7cfs|r'
M.COPPER_TEXT = '|cffeda55fc|r'
@@ -72,7 +73,7 @@ function M.to_string(money, pad, trim, color, no_color)
local text
if trim then
local parts = temp-T
local parts = T.temp-T.acquire()
if gold > 0 then
tinsert(parts, format_number(gold, false, color) .. gold_text)
end