Changes

m
no edit summary
Line 108: Line 108:  
     equipment = function(ship)
 
     equipment = function(ship)
 
         return U.ijoin(U.imap(ship._equipment or {}, function (e)
 
         return U.ijoin(U.imap(ship._equipment or {}, function (e)
             return e and e.equipment and Equipment(e.equipment):icon() or '?'
+
             if not e or not e.equipment then
 +
                return '? '
 +
            end
 +
            local eq = Equipment(e.equipment)
 +
            return Formatting:format_image{Formatting:format_equipment_icon(eq:icon()), caption = Formatting:format_equipment_type(eq:type())}
 
         end), '')
 
         end), '')
 
     end,
 
     end,
cssedit, gkautomate
7,064

edits