Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m get hero key with hero module func instead of _search_string from lang
Sur (talk | contribs)
m get_lore
Line 40: Line 40:


return var_value
return var_value
end
--{{#invoke:HeroData|get_lore|HERO_NAME}}--
p.get_lore = function(frame)
local hero_name = frame.args[1]
lore_key = p.get_json_item(hero_name)
if (lore_key ~= nil) then
return lang_module.get_string(lore_key)
else
return "Hero does not have Lore written"
end
end
end