Module:HeroDataArrays: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) added spirit scaling to all relevant stats |
Gammaton32 (talk | contribs) hide "+0" values, added max boons to damage resist |
||
| Line 38: | Line 38: | ||
for _, col in ipairs(tableDef.columns) do | for _, col in ipairs(tableDef.columns) do | ||
if r[col.field] ~= 0 and r[col.field] ~= nil then | if r[col.field] ~= 0 and r[col.field] ~= nil then | ||
if r[col.field] ~= "+0" then | |||
hasValue = true | hasValue = true | ||
break | break | ||
end | |||
end | end | ||
end | end | ||
| Line 721: | Line 723: | ||
name = name, | name = name, | ||
bulletResist = data["BulletResist"] or 0, | bulletResist = data["BulletResist"] or 0, | ||
bulletResistScaling = data["LevelScaling>BulletResist"] or 0, | bulletResistScaling = "+".. (data["LevelScaling>BulletResist"] or 0), | ||
bulletResistSpiritScaling = data["SpiritScaling>BulletResist"] or 0, | bulletResistScalingMax = (tonumber(roundValue((data["BulletResist"] or 0) + (data["LevelScaling>BulletResist"] or 0) * soul_unlock.get_max("PowerIncrease"))) or 0), | ||
bulletResistSpiritScaling = "+".. (data["SpiritScaling>BulletResist"] or 0), | |||
spiritResist = data["TechResist"] or 0, | spiritResist = data["TechResist"] or 0, | ||
spiritResistScaling = data["LevelScaling>TechResist"] or 0, | spiritResistScaling = "+".. (data["LevelScaling>TechResist"] or 0), | ||
spiritResistSpiritScaling = data["SpiritScaling>TechResist"] or 0, | spiritResistScalingMax = (tonumber(roundValue((data["TechResist"] or 0) + (data["LevelScaling>TechResist"] or 0) * soul_unlock.get_max("PowerIncrease"))) or 0), | ||
spiritResistSpiritScaling = "+".. (data["SpiritScaling>TechResist"] or 0), | |||
meleeResist = data["MeleeResist"] or 0, | meleeResist = data["MeleeResist"] or 0, | ||
critReduction = data["CritDamageReceivedPercent"] or 0 | critReduction = data["CritDamageReceivedPercent"] or 0 | ||
| Line 738: | Line 742: | ||
{ label = "Bullet Resist (%)", field = "bulletResist" }, | { label = "Bullet Resist (%)", field = "bulletResist" }, | ||
{ label = "BR per Boon (%)", field = "bulletResistScaling" }, | { label = "BR per Boon (%)", field = "bulletResistScaling" }, | ||
{ label = "At Max Boon (%)", field = "bulletResistScalingMax" }, | |||
{ label = "BR Spirit Scaling (%)", field = "bulletResistSpiritScaling" }, | { label = "BR Spirit Scaling (%)", field = "bulletResistSpiritScaling" }, | ||
} | } | ||
| Line 746: | Line 751: | ||
{ label = "Spirit Resist (%)", field = "spiritResist" }, | { label = "Spirit Resist (%)", field = "spiritResist" }, | ||
{ label = "SR per Boon (%)", field = "spiritResistScaling" }, | { label = "SR per Boon (%)", field = "spiritResistScaling" }, | ||
{ label = "At Max Boon (%)", field = "spiritResistScalingMax" }, | |||
{ label = "SR Spirit Scaling (%)", field = "spiritResistSpiritScaling" }, | { label = "SR Spirit Scaling (%)", field = "spiritResistSpiritScaling" }, | ||
} | } | ||