Module:Sandbox/LVL: Difference between revisions

LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
No edit summary
Line 469: Line 469:
-- Calculate innate TechPower scaling for this hero
-- Calculate innate TechPower scaling for this hero
local innate_spirit_scale = 1.1 -- Default for most heroes
local innate_spirit_scale = (hero_data["LevelScaling"] and hero_data["LevelScaling"]["TechPower"]) or 0
if hero_data["LevelScaling"] and hero_data["LevelScaling"]["TechPower"] then
    innate_spirit_scale = hero_data["LevelScaling"]["TechPower"]
elseif hero_data["Spirit"] and hero_data["Spirit"]["LevelScaling"] then
    innate_spirit_scale = hero_data["Spirit"]["LevelScaling"]
end
-- Hide scaling icons if not at base values
-- Hide scaling icons if not at base values