Module:CryptogullJr/Data: Difference between revisions

Created page with "local p = {} attrNames = {"Strength", "Agility", "Toughness", "Intelligence", "Willpower", "Ego"} --[1 stats (1 STR, 2 AGI, 3 TUF, 4 INT, 5 WIL, 6 EGO),]-- --[7 Skills, Resist(8 ACID, 9 ELEC, 10 COLD, 11 HEAT, 12 BLEED), 13 bonusstart]-- subtypes = { --[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-sca..."
 
mNo edit summary
 
(4 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"}
    --[1 stats (1 STR, 2 AGI, 3 TUF, 4 INT, 5 WIL, 6 EGO),]--
local subtypes = {
    --[7 Skills, Resist(8 ACID, 9 ELEC, 10 COLD, 11 HEAT, 12 BLEED), 13 bonusstart]--
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 19: Line 17:
         ['Child of the Deep'] = {{0, 0, 3, 0, 0, 0}, "Tank, Strapping Shoulders, Shake It Off, Wilderness Lore: Mountains, Wilderness Lore: Canyons",  "+15 heat resist" },
         ['Child of the Deep'] = {{0, 0, 3, 0, 0, 0}, "Tank, Strapping Shoulders, Shake It Off, Wilderness Lore: Mountains, Wilderness Lore: Canyons",  "+15 heat resist" },
         ['Fuming God-Child'] = {{0, 0, 0, 0, 4, 0}, "Fasting Way, Lionheart, Poison Tolerance, Intimidate","+15 heat resist" },
         ['Fuming God-Child'] = {{0, 0, 0, 0, 4, 0}, "Fasting Way, Lionheart, Poison Tolerance, Intimidate","+15 heat resist" },
        --[Callings]
         ['Apostle'] = {{0, 0, 0, 0, 0, 2}, "Intimidate, Proselytize, Tactful", "" },
         ['Apostle'] = {{0, 0, 0, 0, 0, 2}, "Intimidate, Proselytize, Tactful", "" },
         ['Arconaut'] = {{0, 2, 0, 0, 0, 0}, "Short Blades Proficiency, Scavenger, Gadget Inspector, Spry", "Start with random junk and artifacts" },
         ['Arconaut'] = {{0, 2, 0, 0, 0, 0}, "Short Blades Proficiency, Scavenger, Gadget Inspector, Spry", "Start with random junk and artifacts" },
Line 38: 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 50: 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 61: 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