Module:HeroDataArrays: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) No edit summary |
Gammaton32 (talk | contribs) No edit summary |
||
| Line 494: | Line 494: | ||
p.heroHeavyMeleeTable = function(frame) | p.heroHeavyMeleeTable = function(frame) | ||
-- Pull data | -- Pull data | ||
local heroHeavyMeleeData = heroDataArray({"Name", "HeavyMeleeDamage", "LevelScaling>HeavyMeleeDamage"}) | local heroHeavyMeleeData = heroDataArray({"Name", "HeavyMeleeDamage", "LevelScaling>HeavyMeleeDamage", "SpiritScaling>HeavyMeleeDamage"}) | ||
local rows = {} | local rows = {} | ||
| Line 515: | Line 515: | ||
{ label = "Added per Boon", field = "scalingDamage" }, | { label = "Added per Boon", field = "scalingDamage" }, | ||
{ label = "At Max Boon", field = "maxScalingDamage" }, | { label = "At Max Boon", field = "maxScalingDamage" }, | ||
{ label = "Spirit Scaling", field = "spiritScalingDamage" }, | |||
} | } | ||
} | } | ||
| Line 787: | Line 788: | ||
p.heroSpiritTable = function(frame) | p.heroSpiritTable = function(frame) | ||
local heroSpiritData = heroDataArray({"Name", "TechPower"}) | local heroSpiritData = heroDataArray({"Name", "LevelScaling>TechPower"}) | ||
local rows = {} | local rows = {} | ||
| Line 793: | Line 794: | ||
table.insert(rows, { | table.insert(rows, { | ||
name = name, | name = name, | ||
spiritScaling = "+".. data["TechPower"] or 0, | spiritScaling = "+".. data["LevelScaling>TechPower"] or 0, | ||
maxSpiritScaling = tonumber(data["TechPower"] * soul_unlock.get_max("PowerIncrease")) or 0, | maxSpiritScaling = tonumber(data["LevelScaling>TechPower"] * soul_unlock.get_max("PowerIncrease")) or 0, | ||
}) | }) | ||
end | end | ||