Module:Abilities/card: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m fixed notes that were appearing even if notes source link doesn't exist
m fixed description generator trying to use scale attributes
Line 333: Line 333:
local description = ''
local description = ''
for k, v in pairs(prop) do
for k, v in pairs(prop) do
local formatted_value = utils.format_value_with_prepost(k, v, frame)
if type(v) ~= 'table' then
local attr_name = lang.get_string(k..'_label')
local formatted_value = utils.format_value_with_prepost(k, v, frame)
description = description .. string.format('%s %s', formatted_value, attr_name)
local attr_name = lang.get_string(k..'_label')
description = description .. string.format('%s %s', formatted_value, attr_name)
end
end
end