Module:Sandbox/One Bar: Difference between revisions

Jump to navigation Jump to search
One Bar (talk | contribs)
No edit summary
One Bar (talk | contribs)
No edit summary
Line 40: Line 40:
if (spirit_scaling ~= nil) then
if (spirit_scaling ~= nil) then
for k, v in pairs(spirit_scaling) do
for k, v in pairs(spirit_scaling) do
stats_text = stats_text .. format_spirit_scale(k, hero[k], v)
stats_text = stats_text .. format_spirit_scale(frame, k, hero[k], v)
end
end
else
else
Line 56: Line 56:
for _, prop in ipairs(ability["Info1"]["Main"]["Props"]) do
for _, prop in ipairs(ability["Info1"]["Main"]["Props"]) do
if (prop["Scale"] ~= nil and next(prop["Scale"]) ~= nil) then
if (prop["Scale"] ~= nil and next(prop["Scale"]) ~= nil) then
ability_text = ability_text .. format_spirit_scale(prop["Name"], prop["Value"], prop["Scale"]["Value"])
ability_text = ability_text .. format_spirit_scale(frame, prop["Name"], prop["Value"], prop["Scale"]["Value"])
end
end
end
end