Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. var getShipRadius = function (thisShip)
  2. {
  3. var ship = (thisShip instanceof combatShip) ? thisShip : returnCombatShipByUniqueId(thisShip);
  4.  
  5. if (ship.vesselclass=='Frigate' || ship.ship_type_id==504 || ship.ship_type_id==505 || ship.ship_type_id==506)
  6. return 10;
  7. else if (ship.vesselclass=='Cruiser')
  8. return 14;
  9. else if (ship.vesselclass=='Battleship' || ship.vesselclass=='Carrier')
  10. return 18;
  11. else if (ship.ship_type_id==499)
  12. return 35;
  13. else
  14. return 15;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement