Module:User:Protectator/test2

local p = {} local FEHStatUtil = require 'Module:FEHStatUtil'

function table_to_string(tbl) local result = "{" for k, v in pairs(tbl) do       -- Check the key type (ignore any numerical keys - assume its an array) if type(k) == "string" then result = result.."[\""..k.."\"]".."=" end

-- Check the value type if type(v) == "table" then result = result..table_to_string(v) elseif type(v) == "boolean" then result = result..tostring(v) else result = result.."\""..v.."\"" end result = result.."," end -- Remove leading commas from the result if result ~= "" then result = result:sub(1, result:len-1) end return result.."}" end

function p.lv1Stats(a1, a2, a3, a4, a5) local t = FEHStatUtil.fullLv1Stats(a1, a2, a3, a4, a5) return table.tostring(t) end

return p