Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Removed the now superfluous Clone code which is on Shared
(added pGetMonsterAreas.)
(Removed the now superfluous Clone code which is on Shared)
Line 7: Line 7:
local Shared = require('Module:Shared')
local Shared = require('Module:Shared')
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
function p.clone(orig)
    if type(obj) ~= 'table' then return obj end
    local res = {}
    for k, v in pairs(obj) do res[clone(k)] = clone(v) end
    return res
end


function p.getMonster(name)
function p.getMonster(name)