Module:CryptogullJr: Difference between revisions

248 bytes removed ,  01:43, 7 August 2023
no edit summary
mNo edit summary
No edit summary
Line 40: Line 40:
local bonusInt = {}
local bonusInt = {}
local exts = {}
local exts = {}
local bonus = {
local bonus = {
["Strength"] = "",
["Strength"] = "",
["Intelligence"] = "",
["Intelligence"] = "",
Line 89: Line 89:
end
end


--[[Add stat bonuses from subtype and mutations/cybernetics.
--[Add stat bonuses from subtype and mutations/cybernetics.
disabled as cryptogull/data already sums these up
 
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
if num > 0 then
stats[name] = stats[name] + num
bonus[name] = "+" .. num
end
elseif num < 0 then
bonus[name] = "-" .. num
end
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"]) .. bonus["Strength"],
             strength = tostring(attributes["Strength"]),
             agility = tostring(attributes["Agility"]) .. bonus["Agility"],
             agility = tostring(attributes["Agility"]),
             toughness = attributes["Toughness"] .. bonus["Toughness"],
             toughness = attributes["Toughness"],
             intelligence = attributes["Intelligence"] .. bonus["Intelligence"],
             intelligence = attributes["Intelligence"],
             willpower = attributes["Willpower"] .. bonus["Willpower"],
             willpower = attributes["Willpower"],
             ego = attributes["Ego"] .. bonus["Ego"],
             ego = attributes["Ego"],
             extname = extnameIn,
             extname = extnameIn,
             skills= skills,
             skills= skills,