Changes

m
no edit summary
Line 173: Line 173:  
end
 
end
   −
function format_equipment_link(equipment)
+
function format_equipment_link(equipment, products)
 
     return format{
 
     return format{
         [=[<span class="advanced-tooltip">[[${equipment_link}]]<div class="tooltip-contents">[[File:${equipment_card}|150px]]</div></span>]=],
+
         [=[<span class="advanced-tooltip">[[${equipment_link}]] (${products})<div class="tooltip-contents">[[File:${equipment_card}|150px]]</div></span>]=],
 
         text = text,
 
         text = text,
 
         equipment_link = equipment:link(),
 
         equipment_link = equipment:link(),
         equipment_card = equipment:card()
+
         equipment_card = equipment:card(),
 +
        products = products,
 
     }
 
     }
 
end
 
end
Line 245: Line 246:  
                     rowspan = math.max(4, 4 * #products),
 
                     rowspan = math.max(4, 4 * #products),
 
                     id = equipment:link(),
 
                     id = equipment:link(),
                     link = format_equipment_link(equipment),
+
                     link = format_equipment_link(equipment, #products),
 
                 },
 
                 },
 
                 fuel = resources.fuel or 0,
 
                 fuel = resources.fuel or 0,
cssedit, gkautomate
7,064

edits