Module:Sandbox/LVL: Difference between revisions

LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
No edit summary
Line 198: Line 198:
local scaling_data = hero_data[scaling_type .. "Scaling"]
local scaling_data = hero_data[scaling_type .. "Scaling"]
if scaling_data == nil then return scaling_type .. "Scaling data not found for hero" .. hero_key end
if scaling_data == nil then return "" end
local scaling_value = scaling_data[hero_stat_key]
local scaling_value = scaling_data[hero_stat_key]
if scaling_value == nil then return scaling_type .. "Scaling data does not have key " .. hero_stat_key .. " for hero " .. hero_key end
if scaling_value == nil then return "" end


--round
--round