8,756
edits
m (Teamtoto moved page Module:CryptogullJr to Module:CryptogullJrOld without leaving a redirect) |
mNo edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local decode = require'Module:CryptogullJr/Codes' | local decode = require'Module:CryptogullJr/Codes' | ||
local utilTable = require('Module:Table Utility') | |||
function p.Main(frame) | function p.Main(frame) | ||
Line 28: | Line 29: | ||
if (genotypeC == 'a') then | if (genotypeC == 'a') then | ||
genotype = "True Kin" | genotype = "True Kin" | ||
classcalled = "Caste | classcalled = "Caste" | ||
extname = "Implants | extname = "Implants" | ||
subtype = decode.TrueKinSubtype(subtypeC) | subtype = decode.TrueKinSubtype(subtypeC) | ||
elseif (genotypeC == 'b') then | elseif (genotypeC == 'b') then | ||
genotype = "Mutated Human" | genotype = "Mutated Human" | ||
classcalled = "Calling | classcalled = "Calling" | ||
extname = "Mutations: " | extname = "Mutations: " | ||
subtype = decode.MutantSubtype(subtypeC) | subtype = decode.MutantSubtype(subtypeC) | ||
Line 70: | Line 71: | ||
else | else | ||
previouscode = chars | previouscode = chars | ||
exts[i] = decode.getexts(chars, subtypeC) | exts[i] = decode.getexts(chars, subtypeC)[1] | ||
i = i + 1 | i = i + 1 | ||
end | end | ||
Line 148: | Line 149: | ||
function p.MakeUpSheet(codeIn, genoIn, subtype, classcalledIn, extnameIn, attributes, bonus, extsIn, frame) | function p.MakeUpSheet(codeIn, genoIn, subtype, classcalledIn, extnameIn, attributes, bonus, extsIn, frame) | ||
return frame:expandTemplate { | return frame:expandTemplate { | ||
Line 167: | Line 164: | ||
ego = attributes[6] .. bonus[6], | ego = attributes[6] .. bonus[6], | ||
extname = extnameIn, | extname = extnameIn, | ||
exts = | exts = utilTable.concat(extsIn, "</br>"), | ||
skills = subtype[8], | skills = subtype[8], | ||
notes = subtype[14] | notes = subtype[14] |