8,756
edits
mNo edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
local bonusInt = {} | local bonusInt = {} | ||
local exts = {} | local exts = {} | ||
local bonus = { | |||
["Strength"] = "", | ["Strength"] = "", | ||
["Intelligence"] = "", | ["Intelligence"] = "", | ||
Line 89: | Line 89: | ||
end | end | ||
-- | --[Add stat bonuses from subtype and mutations/cybernetics. | ||
local bonusInt= data.getTotalStatBonuses(subtype, exts) | local bonusInt= data.getTotalStatBonuses(subtype, exts) | ||
for name, num in pairs(bonusInt) do | for name, num in pairs(bonusInt) do | ||
stats[name] = stats[name] + num | |||
end | |||
local skills = data.getSkills(subtype) | local skills = data.getSkills(subtype) | ||
local extra = data.getExtra(subtype) | local extra = data.getExtra(subtype) | ||
Line 115: | Line 111: | ||
classcalled = classcalledIn, | classcalled = classcalledIn, | ||
class = subtype, | class = subtype, | ||
strength = tostring(attributes["Strength"]) | strength = tostring(attributes["Strength"]), | ||
agility = tostring(attributes["Agility"]) | agility = tostring(attributes["Agility"]), | ||
toughness = attributes | toughness = attributes["Toughness"], | ||
intelligence = attributes | intelligence = attributes["Intelligence"], | ||
willpower = attributes | willpower = attributes["Willpower"], | ||
ego = attributes | ego = attributes["Ego"], | ||
extname = extnameIn, | extname = extnameIn, | ||
skills= skills, | skills= skills, |