Changes

no edit summary
Line 158: Line 158:  
function ShipData:code()
 
function ShipData:code()
 
return Formatting:format_ship_code(self._type)
 
return Formatting:format_ship_code(self._type)
 +
end
 +
 +
function ShipData:is_battleship()
 +
return self._type == 8 or self._type == 9 or self._type == 10 or self._type == 12
 
end
 
end
  
cssedit, gkautomate
6,928

edits