Anonymous

Module:Shared: Difference between revisions

From Melvor Idle
no edit summary
(Remove Number module inclusion)
No edit summary
 
Line 1: Line 1:
local Num = require('Module:Number')
--So there are a handful of functions that I'm using in a lot of places
--So there are a handful of functions that I'm using in a lot of places
--So rather than continue to copy across the same handful of functions to every single new module
--So rather than continue to copy across the same handful of functions to every single new module
Line 430: Line 431:
         local val = v
         local val = v
         if type(v) == 'number' then
         if type(v) == 'number' then
             val = p.formatnum(val)
             val = Num.formatnum(val)
         end
         end
         resultDesc = string.gsub(resultDesc, '${' .. k .. '}', val)
         resultDesc = string.gsub(resultDesc, '${' .. k .. '}', val)
2,875

edits