Changes

m
no edit summary
Line 100: Line 100:  
      
 
      
 
     equipment_range = function(ship)
 
     equipment_range = function(ship)
         return U.imax(U.imap(ship._equipment or {}, function (e) return Equipment(e.name):range() or 0 end), 0)
+
         return U.imax(U.imap(ship._equipment or {}, function (e) return Equipment(e.equipment):range() or 0 end), 0)
 
     end,
 
     end,
 
      
 
      
 
     equipment_range_diff = function(ship)
 
     equipment_range_diff = function(ship)
         local equipment_range = U.imax(U.imap(ship._equipment or {}, function (e) return Equipment(e.name):range() or 0 end), 0)
+
         local equipment_range = U.imax(U.imap(ship._equipment or {}, function (e) return Equipment(e.equipment):range() or 0 end), 0)
 
         return (ship:range() or 0) - equipment_range
 
         return (ship:range() or 0) - equipment_range
 
     end,
 
     end,
cssedit, gkautomate
7,064

edits