8,756
edits
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
attrNames = {"Strength", "Agility", "Toughness", "Intelligence", "Willpower", "Ego"} | local attrNames = {"Strength", "Agility", "Toughness", "Intelligence", "Willpower", "Ego"} | ||
subtypes = { | local subtypes = { | ||
--[The Toxic Arboreta of Ekuemekiyye, the Holy City] | --[The Toxic Arboreta of Ekuemekiyye, the Holy City] | ||
['Horticulturist'] = { {0, 0, 0, 3, 0, 0}, "Harvestry, Axe Proficiency, Steady Hands, Draw a Bead, Wilderness Lore: Jungles", "Start with a bio-scanning bracelet, +2 bleed resist" }, | ['Horticulturist'] = { {0, 0, 0, 3, 0, 0}, "Harvestry, Axe Proficiency, Steady Hands, Draw a Bead, Wilderness Lore: Jungles", "Start with a bio-scanning bracelet, +2 bleed resist" }, | ||
Line 37: | Line 37: | ||
['Beak'] = {0, 0, 0, 0, 0, 1}, | ['Beak'] = {0, 0, 0, 0, 0, 1}, | ||
['No Cybernetic'] = {0, 0, 2, 0, 0, 0} | ['No Cybernetic'] = {0, 0, 2, 0, 0, 0} | ||
} | |||
local defects = { "Amnesia", "Blinking Tic", "Dystechnia", "Evil Twin", | |||
"Narcolepsy", "Psionic Migraines", "Quantum Jitters", "Socially Repugnant", | |||
"Albino", "Amphibious", "Brittle Bones", "Carnivorous", "Cold Blooded", | |||
"Electromagnetic Impulse", "Hooks for Feet", "Irritable Genome", "Myopic", | |||
"Nerve Poppy", "Spontaneous Combustion", "Tonic Allergy" | |||
} | } | ||
Line 49: | Line 56: | ||
function p.getExtra(subtype) | function p.getExtra(subtype) | ||
return subtypes[subtype][3] | return subtypes[subtype][3] | ||
end | |||
function p.isDefect(mut) | |||
for i, v in ipairs(defects) do | |||
if mut == v then | |||
return true | |||
end | |||
end | |||
return false | |||
end | end | ||
Line 60: | Line 76: | ||
for i=1, #exts do | for i=1, #exts do | ||
for j = 1, 6 do | for j = 1, 6 do | ||
if mutationBonus[exts[i]] ~= nil then | |||
if mutationBonus[exts[i]][j] ~= 0 then | if mutationBonus[exts[i]][j] ~= 0 then | ||
bonuses[attrNames[j]] = bonuses[attrNames[j]] + mutationBonus[exts[i]][j] | bonuses[attrNames[j]] = bonuses[attrNames[j]] + mutationBonus[exts[i]][j] | ||
end | |||
end | end | ||
end | end |