Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m use {{PI}} instead of {{Ls}} for level scaling |
Gammaton32 (talk | contribs) 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 | 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"] | ||