Module:HeroData: Difference between revisionsGive feedback
m get_lore uses _get_string instead of get_string |
m get_lore bugfix |
||
| Line 46: | Line 46: | ||
p.get_lore = function(frame) | p.get_lore = function(frame) | ||
local hero_name = frame.args[1] | local hero_name = frame.args[1] | ||
lore_key = p.get_json_item(hero_name) | lore_key = p.get_json_item(hero_name)['Lore'] | ||
if (lore_key ~= nil) then | if (lore_key ~= nil) then | ||
return lang_module._get_string(lore_key) | return lang_module._get_string(lore_key) | ||