Changes

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

edits