Module:Abilities-test/card: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 296: | Line 296: | ||
-- Exclude 0 values | -- Exclude 0 values | ||
if value and value ~= 0 then | -- if value and value ~= 0 then | ||
local icon = get_icon(prop.Type) | local icon = get_icon(prop.Type) | ||
local main_box = frame:expandTemplate{ | local main_box = frame:expandTemplate{ | ||
| Line 313: | Line 313: | ||
} | } | ||
table.insert(main_boxes, main_box) | table.insert(main_boxes, main_box) | ||
end | -- end | ||
end | end | ||
| Line 347: | Line 347: | ||
-- Some props don't have values, as those come from upgrades | -- Some props don't have values, as those come from upgrades | ||
-- For now, we will ignore these and only show data for the base ability | -- For now, we will ignore these and only show data for the base ability | ||
if prop.Value | if prop.Value then | ||
local icon = get_icon(prop.Type) | local icon = get_icon(prop.Type) | ||
local alt_box = frame:expandTemplate{ | local alt_box = frame:expandTemplate{ | ||