More actions
m BulletArmorDamageReduction and TechArmorDamageReduction to BulletResist and TechResist |
m fixed resists scaling additively instead of multiplicatively |
||
Line 524: | Line 524: | ||
stat_value = stat_value + (spirit_power * scaling_value) | stat_value = stat_value + (spirit_power * scaling_value) | ||
elseif (scaling_type == "Level") then | elseif (scaling_type == "Level") then | ||
stat_value = stat_value + (power_increases * scaling_value) | if attr_key == 'TechResist' or attr_key == 'BulletResist' then | ||
-- each PI for resists is multiplicative | |||
stat_value = (stat_value/100 + 1 - (1-scaling_value/100)^power_increases)*100 | |||
else | |||
stat_value = stat_value + (power_increases * scaling_value) | |||
end | |||
end | end | ||
end | end |