Module:Sandbox/User:Teamtoto/LuaModule: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 72: Line 72:
end
end
end
end
 
local skills = data.getSkills(subtype)
return p.MakeUpSheet("", genotype, subtype, class_called, ext_called, stats, bonus, exts, frame)
local extra = data.getExtra(subtype)
return p.MakeUpSheet(code, genotype, subtype, class_called, ext_called, stats, bonus, exts, skills, extra, frame)
end
end


function p.MakeUpSheet(codeIn, genoIn, subtype, classcalledIn, extnameIn, attributes, bonus, exts, frame)
function p.MakeUpSheet(codeIn, genoIn, subtype, classcalledIn, extnameIn, attributes, bonus, exts, skills, extra, frame)
     return frame:expandTemplate {
     return frame:expandTemplate {
         title = 'Crypto result',
         title = 'Crypto result',
         args = {
         args = {
             code = "",
             code = codeIn,
             genotype = genoIn,
             genotype = genoIn,
             classcalled = classcalledIn,
             classcalled = classcalledIn,
Line 91: Line 92:
             ego = attributes["Ego"] .. bonus["Ego"],
             ego = attributes["Ego"] .. bonus["Ego"],
             extname = extnameIn,
             extname = extnameIn,
             exts = utilTable.concat(exts, ", ")
            skills= skills,
             exts = utilTable.concat(exts, ", "),
            extra=extra
         }
         }
     }
     }