Module:Abilities/utils: Difference between revisions

Sur (talk | contribs)
m couldnt get working; removed get_value
Tag: Manual revert
LVL (talk | contribs)
Removed dead code: data["Name"] is always nil since data is the full JSON object, not a single ability. This line had no effect
Line 75: Line 75:


function p.get_notes_source_page_name(ability_key)  
function p.get_notes_source_page_name(ability_key)  
local ability_name_en = data["Name"]
local ability_name_localized = lang.get_string(ability_key)
local ability_name_localized = lang.get_string(ability_key)
local notes_str_localized = dictionary_module.translate('Notes', nil, '')
local notes_str_localized = dictionary_module.translate('Notes', nil, '')