Changes

no edit summary
Line 213: Line 213:  
function format_screw(resources)
 
function format_screw(resources)
 
     return resources and (resources.screw or "?") or "-"
 
     return resources and (resources.screw or "?") or "-"
 +
end
 +
 +
function format_products(product_names)
 +
    return #product_names == 1 and format_equipment_link(product_names[1]) or #product_names > 1 and "Unimplemented" or "None"
 
end
 
end
   Line 265: Line 269:  
             equips6_bg = format_equipment_bg(resources6),
 
             equips6_bg = format_equipment_bg(resources6),
 
             equips10_bg = format_equipment_bg(resources10),
 
             equips10_bg = format_equipment_bg(resources10),
             upgrades = #product_names == 1 and "[[" .. product_names[1] .. "]]" or #product_names > 1 and "Unimplemented" or "None",
+
             upgrades = format_products(product_names),
 
             ships = ships,
 
             ships = ships,
 
             days = days,
 
             days = days,
cssedit, gkautomate
7,064

edits