Module:CryptogullJr/Codes: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(add variants)
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
local p = {}
local p = {}
     --[1 NAME, stats (2 STR, 3 AGI, 4 TUF, 5 INT, 6 WIL, 7 EGO),]--
     --[1 NAME, stats (2 STR, 3 AGI, 4 TUF, 5 INT, 6 WIL, 7 EGO),]--
     --[8 Skills, Resist(9 ACID, 10 ELEC, 11 COLD, 12 HEAT, 13 BLEED), 14 bonusstart]--
     --[8 Skills, Resist(9 ACID, 10 ELEC, 11 COLD, 12 HEAT, 13 BLEED), 14 bonusstart]--
Line 37: Line 36:
         ['l'] = { "Watervine Farmer", 0, 0, 2, 0, 0, 0, "Cooking and Gathering, Harvestry, Axe Proficiency, Wilderness Lore: Salt Marshes", 0, 0, 0, 0, 0, "Starts with +100 reputation with the villagers of Joppa and a farmer's token" }
         ['l'] = { "Watervine Farmer", 0, 0, 2, 0, 0, 0, "Cooking and Gathering, Harvestry, Axe Proficiency, Wilderness Lore: Salt Marshes", 0, 0, 0, 0, 0, "Starts with +100 reputation with the villagers of Joppa and a farmer's token" }
     }
     }
statBonus = {
['Doubled-muscled'] = {2, 0, 0, 0, 0, 0},
['Triple-jointed'] = {0, 2, 0, 0, 0, 0},
['Two-hearted'] = {0, 0, 2, 0, 0, 0},
['Beak'] = {0, 0, 0, 0, 0, 1},
['No Cybernetic'] = {0, 0, 1, 0, 0, 0}
}


muts = {
muts = {
        ['aa'] = { "Chimera", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['aa'] = {"Chimera", ""},
        ['ab'] = { "Esper", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ab'] = {"Esper", ""},
        ['uu'] = { "Unstable Genome", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['uu'] = {"Unstable Genome", ""},
        ['u2'] = { "Unstable Genome(2)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ba'] = {"Adrenal Control", ""},
        ['u3'] = { "Unstable Genome(3)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bb'] = {"Burrowing Claws", ""},
        ['u4'] = { "Unstable Genome(4)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bc'] = {"Carapace", ""},
        ['u5'] = { "Unstable Genome(5)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bd'] = {"Corrosive Gas Generation", ""},
        ['u6'] = { "Unstable Genome(6)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['be'] = {"Double-muscled", ""},
        ['u7'] = { "Unstable Genome(7)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bf'] = {"Electrical Generation", ""},
        ['u8'] = { "Unstable Genome(8)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bg'] = {"Electromagnetic Pulse", ""},
        ['u9'] = { "Unstable Genome(9)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bh'] = {"Flaming Ray", ""},
        ['ba'] = { "Adrenal Control", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bi'] = {"Freezing Ray", ""},
        ['bb'] = { "Burrowing Claws", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bj'] = {"Heightened Hearing", ""},
        ['bc'] = { "Carapace", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bk'] = {"Heightened Quickness", ""},
        ['b6'] = { "Carnivorous", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bl'] = {"Horns", ""},
        ['bd'] = { "Corrosive Gas Generation", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bm'] = {"Metamorphosis", ""},
        ['be'] = { "Double-muscled", 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bn'] = {"Multiple Arms", ""},
        ['bf'] = { "Electrical Generation", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bo'] = {"Multiple Legs", ""},
        ['bg'] = { "Electromagnetic Pulse", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bp'] = {"Night Vision", ""},
        ['bh'] = { "Flaming Hands", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bq'] = {"Phasing", ""},
        ['bi'] = { "Freezing Hands", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['br'] = {"Photosynthetic Skin", ""},
        ['bj'] = { "Heightened Hearing", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bs'] = {"Quills", ""},
        ['bk'] = { "Heightened Quickness", 0, 0, -1, 0, 0, 0, 0, 0, 0, 0 },
    ['bt'] = {"Regeneration", ""},
        ['bl'] = { "Horns", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bu'] = {"Sleep Gas Generation", ""},
        ['bm'] = { "Metamorphosis", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bv'] = {"Slime Glands", ""},
        ['bn'] = { "Multiple Arms", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bw'] = {"Spinnerets", ""},
        ['bo'] = { "Multiple Legs", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bx'] = {"Stinger (Confusing Venom)", ""},
        ['bp'] = { "Night Vision", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['by'] = {"Stinger (Paralyzing Venom)", ""},
        ['bq'] = { "Phasing", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['bz'] = {"Stinger (Poisoning Venom)", ""},
        ['br'] = { "Photosynthetic Skin", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['b1'] = {"Thick Fur", ""},
        ['bs'] = { "Quills", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['b2'] = {"Triple-jointed", ""},
        ['bt'] = { "Regeneration", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['b3'] = {"Two-headed", ""},
        ['bu'] = { "Sleep Gas Generation", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['b4'] = {"Two-hearted", ""},
        ['bv'] = { "Slime Glands", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['b5'] = {"Wings", ""},
        ['bw'] = { "Spinnerets", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['b6'] = {"Carnivorous", ""},
        ['bx'] = { "Stinger (Confusing Venom)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ca'] = {"Albino", ""},
        ['by'] = { "Stinger (Paralyzing Venom)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['cb'] = {"Amphibious", ""},
        ['bz'] = { "Stinger (Poisoning Venom)", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['cc'] = {"Nerve Poppy", ""},
        ['b1'] = { "Thick Fur", 0, 0, 0, 0, 0, 0, 0, 0, 4, 4 },
    ['cd'] = {"Beak", ""},
        ['b2'] = { "Triple-jointed", -1, 2, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ce'] = {"Cold Blooded", ""},
        ['b3'] = { "Two-headed", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['cf'] = {"Brittle Bones", ""},
        ['b4'] = { "Two-hearted", 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 },
    ['cf'] = {"Electromagnetic Impulse", ""},
        ['b5'] = { "Wings", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ch'] = {"Hemophilia", ""},
        --[phys defects]
    ['ci'] = {"Hooks for Feet", ""},
        ['ca'] = { "Albino", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['cj'] = {"Myopic", ""},
        ['cb'] = { "Amphibious", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ck'] = {"I forgor", ""},
        ['cc'] = { "Analgesia", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['cl'] = {"Spontaneous Combustion", ""},
        ['cd'] = { "Beak", 0, 0, 0, 0, 0, -1, 0, 0, 0, 0 },
    ['cm'] = {"Tonic Allergy", ""},
        ['ce'] = { "Cold-Blooded", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['cn'] = {"Irritable Genome", ""},
        ['cf'] = { "Brittle Bones", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['da'] = {"Beguiling", ""},
        ['cg'] = { "Electromagnetic Impulse", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['db'] = {"Burgeoning", ""},
        ['ch'] = { "Hemophilia", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dc'] = {"Clairvoyance", ""},
        ['ci'] = { "Hooks for Feet", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dd'] = {"Confusion", ""},
        ['cj'] = { "Myopia", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['de'] = {"Cryokinesis", ""},
        ['ck'] = { "Spontaneous Combustion", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['df'] = {"Domination", ""},
        --[mental muts]
    ['dg'] = {"Disintegration", ""},
        ['da'] = { "Beguiling", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dh'] = {"Ego Projection", ""},
        ['db'] = { "Burgeoning", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['di'] = {"Force Bubble", ""},
        ['dc'] = { "Clairvoyance", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dj'] = {"Force Wall", ""},
        ['dd'] = { "Confusion", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dk'] = {"Kindle", ""},
        ['de'] = { "Cryokinesis", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dl'] = {"Light Manipulation", ""},
        ['df'] = { "Domination", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dm'] = {"Mass Mind", ""},
        ['dg'] = { "Disintegration", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dn'] = {"Mental Mirror", ""},
        ['dh'] = { "Ego Projection", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['do'] = {"Precognition", ""},
        ['di'] = { "Force Bubble", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dp'] = {"Psychometry", ""},
        ['dj'] = { "Force Wall", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dq'] = {"Pyrokinesis", ""},
        ['dk'] = { "Kindle", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dr'] = {"Sense Psychic", ""},
        ['dl'] = { "Light Manipulation", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ds'] = {"Space-Time Vortex", ""},
        ['dm'] = { "Mass Mind", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dt'] = {"Stunning Force", ""},
        ['dn'] = { "Mental Mirror", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['du'] = {"Sunder Mind", ""},
        ['do'] = { "Precognition", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dv'] = {"Syphon Vim", ""},
        ['dp'] = { "Psychometry", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dw'] = {"Telepathy", ""},
        ['dq'] = { "Pyrokinesis", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dx'] = {"Teleportation", ""},
        ['dr'] = { "Sense Psychic", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dy'] = {"Teleport Other", ""},
        ['ds'] = { "Space-Time Vortex", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['d1'] = {"Temporal Fugue", ""},
        ['dt'] = { "Stunning Force", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['dz'] = {"Time Dilation", ""},
        ['du'] = { "Sunder Mind", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ea'] = {"Amnesia", ""},
        ['dv'] = { "Syphon Vim", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['eb'] = {"Blinking Tic", ""},
        ['dw'] = { "Telepathy", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ec'] = {"Evil Twin", ""},
        ['dx'] = { "Teleportation", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ed'] = {"Narcolepsy", ""},
        ['dy'] = { "Teleport Other", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ee'] = {"??", ""},
        ['dz'] = { "Time Dilation", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ef'] = {"Socially Repugnant", ""},
        ['d1'] = { "Temporal Fugue", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['eg'] = {"Unwelcome Germination", ""},
        --[mental defects]
    ['eh'] = {"Quantum Jitters", ""},
        ['ea'] = { "Amnesia", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ei'] = {"Dystechnia", ""},
        ['eb'] = { "Blinking Tic", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['ow'] = {"Psionic Migraines", ""},
        ['ec'] = { "Evil Twin", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['u2'] = {"Unstable Genome(2)", ""},
        ['ed'] = { "Narcolepsy", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['u3'] = {"Unstable Genome(3)", ""},
        ['ee'] = { "Pack Rat", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['u4'] = {"Unstable Genome(4)", ""},
        ['ef'] = { "Socially Repugnant", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['u5'] = {"Unstable Genome(5)", ""},
        ['eg'] = { "Unwelcome Germination", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['u6'] = {"Unstable Genome(6)", ""},
        --[cybernetics (to be added)]
    ['u7'] = {"Unstable Genome(7)", ""},
        ['00'] = { "", 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 },
    ['u8'] = {"Unstable Genome(8)", ""},
        ['01'] = { "dermal insulation", 0, 0, 0, 0, 0, 0, 6, 6, 6, 6 },
    ['u9'] = {"Unstable Genome(9)", ""},
        ['04'] = { 'optical bioscanner', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['00'] = {"No Cybernetic", ""},
        ['05'] = { 'optical technoscanner', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['01'] = {"dermal insulation", ""},
        ['06'] = { 'night vision', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['02'] = {"dermal insulation", ""},
        ['07'] = { 'hyper-elastic ankle tendons', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['03'] = {"dermal insulation", ""},
        ['08'] = { 'parabolic muscular subroutine', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['04'] = {"optical bioscanner", ""},
        ['09'] = { 'translucent skin', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['05'] = {"optical technoscanner", ""},
        ['11'] = { 'stabilizer arm locks', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['06'] = {"night vision", ""},
        ['12'] = { 'rapid release finger flexors', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['07'] = {"hyper-elastic ankle tendons", ""},
        ['13'] = { 'carbide hand bones', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['08'] = {"parabolic muscular subroutine", ""},
        ['14'] = { 'pentaceps', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['09'] = {"translucent skin", ""},
        ['15'] = { 'inflatable axons', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
    ['10'] = {"translucent skin", ""},
        -- subtypes A-D, E-H, I-L
    ['11'] = {"stabilizer arm locks", ""},
        ['16'] = { 'nocturnal apex', 'cherubic visage', 'air current microsensor', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
    ['12'] = {"rapid release finger flexors", ""},
    }
    ['13'] = {"carbide hand bones", ""},
    ['14'] = {"pentaceps", ""},
    ['15'] = {"inflatable axons", ""}
}


local mutationVariants = {
['cd'] = {'Beak' , 'Bill', 'Rostrum', 'Frill', 'proboscis'},  -- beak
['bh'] = {'Hands, Face, Feet'},  --flaming ray
['bi'] = {'Hands, Face, Feet'},  --freezing ray
['bl'] = {'horns', 'horn', 'antlers', 'casque'}  --horns
}


function p.TrueKinSubtype(code)
function p.TrueKinSubtype(code)
Line 161: Line 166:
function p.MutantSubtype(code)
function p.MutantSubtype(code)
     return calling[code]
     return calling[code]
end
function p.getStatBonus(code)
return statBonus[code]
end
end


Line 166: Line 175:
     if code ~= nil and code == '16' then
     if code ~= nil and code == '16' then
         if subtypeC < 'e' then
         if subtypeC < 'e' then
             return { 'nocturnal apex', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
             return { 'nocturnal apex'}
         elseif subtypeC < 'i' then
         elseif subtypeC < 'i' then
             return { 'cherubic visage', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
             return { 'cherubic visage'}
         else
         else
             return { 'air current microsensor', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
             return { 'air current microsensor'}
         end
         end
     else
     else
         return muts[code]
         return muts[code]
     end
     end
end
function p.getImplants(code, subtypeC)
end
end


return p
return p

Latest revision as of 00:41, 7 August 2023


local p = {}
    --[1 NAME, stats (2 STR, 3 AGI, 4 TUF, 5 INT, 6 WIL, 7 EGO),]--
    --[8 Skills, Resist(9 ACID, 10 ELEC, 11 COLD, 12 HEAT, 13 BLEED), 14 bonusstart]--
caste = {
        --[The Toxic Arboreta of Ekuemekiyye, the Holy City]
        ['a'] = { "Horticulturist", 0, 0, 0, 3, 0, 0, "Harvestry, Axe Proficiency, Steady Hands, Draw a Bead, Wilderness Lore: Jungles", 0, 0, 0, 0, 2, "Start with a bio-scanning bracelet" },
        ['b'] = { "Priest of All Suns", 0, 0, 0, 0, 0, 3, "Cudgel Proficiency, Heal, Snake Oiler, Intimidate, Wilderness Lore: Jungles", 0, 0, 0, 0, 2, "Start with a smiling sun mask" },
        ['c'] = { "Priest of All Moons", 0, 0, 2, 0, 2, 0, "Axe Proficiency, Butchery, Lionheart, Poison Tolerance, Wilderness Lore: Jungles", 0, 0, 0, 0, 2, "Start with a frowning moon mask" },
        ['d'] = { "Syzygyrior", 0, 3, 0, 0, 0, 0, "Offhand Strikes, Ambidexterity, Wayfaring: Jungles", 0, 0, 0, 0, 0, "" },
        --[he Ice-Sheathed Arcology of Ibul]
        ['e'] = { "Artifex", 0, 0, 0, 3, 0, 0, "Repair, Disassemble, Deploy Turret, Tinker I, Tinker II", 0, 0, 15, 0, 0, "" },
        ['f'] = { "Consul", 0, 0, 0, 0, 0, 3, "Inspiring Presence, Proselytize", 0, 0, 15, 0, 0, "" },
        ['g'] = { "Praetorian", 2, 0, 1, 0, 1, 0, "Long Blade Proficiency, Shield Slam, Steady Hands, Draw a Bead", 0, 0, 15, 0, 0, "" },
        ['h'] = { "Eunuch", 0, 2, 0, 2, 0, 0, "Hobble, Weak Spotter, Spry, Hurdle", 0, 0, 15, 0, 0, "" },
        --[The Crustal Mortars of Yawningmoon]
        ['i'] = { "Child of the Hearth", 3, 0, 0, 0, 0, 0, "Slam, Calloused, Strapping Shoulders", 0, 0, 0, 15, 0, "" },
        ['j'] = { "Child of the Wheel", 1, 2, 0, 0, 0, 1, "Short Blades Proficiency, Cleave, Offhand Strikes, Iron Mind", 0, 0, 0, 15, 0, "" },
        ['k'] = { "Child of the Deep", 0, 0, 3, 0, 0, 0, "Tank, Strapping Shoulders, Shake It Off, Wilderness Lore: Mountains, Wilderness Lore: Canyons", 0, 0, 0, 15, 0, "" },
        ['l'] = { "Fuming God-Child", 0, 0, 0, 0, 4, 0, "Fasting Way, Lionheart, Poison Tolerance, Intimidate", 0, 0, 0, 15, 0, "" }
    }

    --[NAME, stats (STR, AGI, TUF, INT, WIL, EGO),]--
    --[Skills, Resist(ACID, ELEC, COLD, HEAT, BLEED), bonusstart]--
calling = {
        ['a'] = { "Apostle", 0, 0, 0, 0, 0, 2, "Intimidate, Proselytize, Tactful", 0, 0, 0, 0, 0, "" },
        ['b'] = { "Arconaut", 0, 2, 0, 0, 0, 0, "Short Blades Proficiency, Scavenger, Gadget Inspector, Spry", 0, 0, 0, 0, 0, "Start with random junk and artifacts" },
        ['c'] = { "Greybeard", -1, 0, 0, 0, 3, 0, "Cudgel Proficiency, Berate, Calloused", 0, 0, 0, 0, 0, "Start with +100 bear reputation" },
        ['d'] = { "Gunslinger", 0, 2, 0, 0, 0, 0, "Weak Spotter", 0, 0, 0, 0, 0, "Start with +200 reputation with mysterious strangers" },
        ['e'] = { "Marauder", 2, 0, 0, 0, 0, 0, "Dismember, Charge, Butchery", 0, 0, 0, 0, 0, "" },
        ['f'] = { "Pilgrim", 0, 0, 0, 0, 2, 0, "Meditate, Fasting Way, Iron Mind, Mind's Compass", 0, 0, 0, 0, 0, "" },
        ['g'] = { "Nomad", 0, 0, 2, 0, 0, 0, "Mind's Compass, Wilderness Lore: Salt Pans, Harvestry, Weathered", 0, 0, 15, 15, 0, "Starts with +200 Issachari reputation and a recycling suit" },
        ['h'] = { "Scholar", 0, 0, 0, 2, 0, 0, "Gadget Inspector, Heal, Harvestry, Hurdle, Tactful", 0, 0, 0, 0, 0, "" },
        ['i'] = { "Tinker", 0, 0, 0, 2, 0, 0, "Gadget Inspector, Lay Mine, Disassemble, Repair, Tinker I", 0, 0, 0, 0, 0, "Begins with a number of random artifacts and scrap and +100 Barathrumites reputation" },
        ['j'] = { "Warden", 2, 0, 0, 0, 0, 0, "Long Blades Proficiency, Shield Slam, Steady Hands, Draw a Bead, Pistol Proficiency", 0, 0, 0, 0, 0, "Starts with +300 Warden reputation" },
        ['k'] = { "Water Merchant", 0, 0, 0, 0, 0, 2, "Menacing Stare, Snake Oiler", 0, 0, 0, 0, 0, "Starts with trade goods and a merchant's token" },
        ['l'] = { "Watervine Farmer", 0, 0, 2, 0, 0, 0, "Cooking and Gathering, Harvestry, Axe Proficiency, Wilderness Lore: Salt Marshes", 0, 0, 0, 0, 0, "Starts with +100 reputation with the villagers of Joppa and a farmer's token" }
    }


statBonus = {
	['Doubled-muscled'] = {2, 0, 0, 0, 0, 0},
	['Triple-jointed'] = {0, 2, 0, 0, 0, 0},
	['Two-hearted'] = {0, 0, 2, 0, 0, 0},
	['Beak'] = {0, 0, 0, 0, 0, 1},
	['No Cybernetic'] = {0, 0, 1, 0, 0, 0}
}

muts = {
    ['aa'] = {"Chimera", ""},
    ['ab'] = {"Esper", ""},
    ['uu'] = {"Unstable Genome", ""},
    ['ba'] = {"Adrenal Control", ""},
    ['bb'] = {"Burrowing Claws", ""},
    ['bc'] = {"Carapace", ""},
    ['bd'] = {"Corrosive Gas Generation", ""},
    ['be'] = {"Double-muscled", ""},
    ['bf'] = {"Electrical Generation", ""},
    ['bg'] = {"Electromagnetic Pulse", ""},
    ['bh'] = {"Flaming Ray", ""},
    ['bi'] = {"Freezing Ray", ""},
    ['bj'] = {"Heightened Hearing", ""},
    ['bk'] = {"Heightened Quickness", ""},
    ['bl'] = {"Horns", ""},
    ['bm'] = {"Metamorphosis", ""},
    ['bn'] = {"Multiple Arms", ""},
    ['bo'] = {"Multiple Legs", ""},
    ['bp'] = {"Night Vision", ""},
    ['bq'] = {"Phasing", ""},
    ['br'] = {"Photosynthetic Skin", ""},
    ['bs'] = {"Quills", ""},
    ['bt'] = {"Regeneration", ""},
    ['bu'] = {"Sleep Gas Generation", ""},
    ['bv'] = {"Slime Glands", ""},
    ['bw'] = {"Spinnerets", ""},
    ['bx'] = {"Stinger (Confusing Venom)", ""},
    ['by'] = {"Stinger (Paralyzing Venom)", ""},
    ['bz'] = {"Stinger (Poisoning Venom)", ""},
    ['b1'] = {"Thick Fur", ""},
    ['b2'] = {"Triple-jointed", ""},
    ['b3'] = {"Two-headed", ""},
    ['b4'] = {"Two-hearted", ""},
    ['b5'] = {"Wings", ""},
    ['b6'] = {"Carnivorous", ""},
    ['ca'] = {"Albino", ""},
    ['cb'] = {"Amphibious", ""},
    ['cc'] = {"Nerve Poppy", ""},
    ['cd'] = {"Beak", ""},
    ['ce'] = {"Cold Blooded", ""},
    ['cf'] = {"Brittle Bones", ""},
    ['cf'] = {"Electromagnetic Impulse", ""},
    ['ch'] = {"Hemophilia", ""},
    ['ci'] = {"Hooks for Feet", ""},
    ['cj'] = {"Myopic", ""},
    ['ck'] = {"I forgor", ""},
    ['cl'] = {"Spontaneous Combustion", ""},
    ['cm'] = {"Tonic Allergy", ""},
    ['cn'] = {"Irritable Genome", ""},
    ['da'] = {"Beguiling", ""},
    ['db'] = {"Burgeoning", ""},
    ['dc'] = {"Clairvoyance", ""},
    ['dd'] = {"Confusion", ""},
    ['de'] = {"Cryokinesis", ""},
    ['df'] = {"Domination", ""},
    ['dg'] = {"Disintegration", ""},
    ['dh'] = {"Ego Projection", ""},
    ['di'] = {"Force Bubble", ""},
    ['dj'] = {"Force Wall", ""},
    ['dk'] = {"Kindle", ""},
    ['dl'] = {"Light Manipulation", ""},
    ['dm'] = {"Mass Mind", ""},
    ['dn'] = {"Mental Mirror", ""},
    ['do'] = {"Precognition", ""},
    ['dp'] = {"Psychometry", ""},
    ['dq'] = {"Pyrokinesis", ""},
    ['dr'] = {"Sense Psychic", ""},
    ['ds'] = {"Space-Time Vortex", ""},
    ['dt'] = {"Stunning Force", ""},
    ['du'] = {"Sunder Mind", ""},
    ['dv'] = {"Syphon Vim", ""},
    ['dw'] = {"Telepathy", ""},
    ['dx'] = {"Teleportation", ""},
    ['dy'] = {"Teleport Other", ""},
    ['d1'] = {"Temporal Fugue", ""},
    ['dz'] = {"Time Dilation", ""},
    ['ea'] = {"Amnesia", ""},
    ['eb'] = {"Blinking Tic", ""},
    ['ec'] = {"Evil Twin", ""},
    ['ed'] = {"Narcolepsy", ""},
    ['ee'] = {"??", ""},
    ['ef'] = {"Socially Repugnant", ""},
    ['eg'] = {"Unwelcome Germination", ""},
    ['eh'] = {"Quantum Jitters", ""},
    ['ei'] = {"Dystechnia", ""},
    ['ow'] = {"Psionic Migraines", ""},
    ['u2'] = {"Unstable Genome(2)", ""},
    ['u3'] = {"Unstable Genome(3)", ""},
    ['u4'] = {"Unstable Genome(4)", ""},
    ['u5'] = {"Unstable Genome(5)", ""},
    ['u6'] = {"Unstable Genome(6)", ""},
    ['u7'] = {"Unstable Genome(7)", ""},
    ['u8'] = {"Unstable Genome(8)", ""},
    ['u9'] = {"Unstable Genome(9)", ""},
    ['00'] = {"No Cybernetic", ""},
    ['01'] = {"dermal insulation", ""},
    ['02'] = {"dermal insulation", ""},
    ['03'] = {"dermal insulation", ""},
    ['04'] = {"optical bioscanner", ""},
    ['05'] = {"optical technoscanner", ""},
    ['06'] = {"night vision", ""},
    ['07'] = {"hyper-elastic ankle tendons", ""},
    ['08'] = {"parabolic muscular subroutine", ""},
    ['09'] = {"translucent skin", ""},
    ['10'] = {"translucent skin", ""},
    ['11'] = {"stabilizer arm locks", ""},
    ['12'] = {"rapid release finger flexors", ""},
    ['13'] = {"carbide hand bones", ""},
    ['14'] = {"pentaceps", ""},
    ['15'] = {"inflatable axons", ""}
}


function p.TrueKinSubtype(code)
    return caste[code]
end

function p.MutantSubtype(code)
    return calling[code]
end

function p.getStatBonus(code)
	return statBonus[code]
end

function p.getexts(code, subtypeC)
    if code ~= nil and code == '16' then
        if subtypeC < 'e' then
            return { 'nocturnal apex'}
        elseif subtypeC < 'i' then
            return { 'cherubic visage'}
        else
            return { 'air current microsensor'}
        end
    else
        return muts[code]
    end
end

return p