Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m use {{PI}} instead of {{Ls}} for level scaling
updated get_scalar_type to be able to use hero name
Line 146: Line 146:
local hero_data = heroes_data[hero_key]
local hero_data = heroes_data[hero_key]
if(hero_data == nil) then return "Hero " .. hero_key .. " not found." end
if(hero_data == nil) then hero = p.get_json_item(hero_name) end
if(hero_data == nil) then return "Hero not found." end
local scaling_data = hero_data[scaling_type .. "Scaling"]
local scaling_data = hero_data[scaling_type .. "Scaling"]