Changes

no edit summary
Line 295: Line 295:  
     for i = 1, ship:slots_length() or 0 do
 
     for i = 1, ship:slots_length() or 0 do
 
         local equipment, size = ship:slot(i)
 
         local equipment, size = ship:slot(i)
         if self:_is_main_gun(equipment) or self:_is_secondary_gun(equipment) then
+
         if equipment then
            return 1
+
            if self:_is_main_gun(equipment) or self:_is_secondary_gun(equipment) then
        elseif self:_is_torpedo(equipment) then
+
                return 1
            return 2
+
            elseif self:_is_torpedo(equipment) then
 +
                return 2
 +
            end
 
         end
 
         end
 
     end
 
     end
cssedit, gkautomate
7,064

edits