//MAXIMUS: all changes, which were made here, more correspond to cannons quantity and size of vessels
void InitShips()
{
	// PRS3 -->
	//English			
	shipstatsmult.n0.MaxCaliber	=	1.00;
	shipstatsmult.n0.Weight		=	1.00;
	shipstatsmult.n0.Capacity	=	0.9;
	shipstatsmult.n0.MaxCrew	=	0.95;
	shipstatsmult.n0.MinCrew	=	1.05;
	shipstatsmult.n0.SpeedRate	=	1.05;
	shipstatsmult.n0.TurnRate	=	1.05;
	shipstatsmult.n0.Price		=	1.00;
	shipstatsmult.n0.HP			=	1.00;

	//French
	shipstatsmult.n1.MaxCaliber	=	1.00;
	shipstatsmult.n1.Weight		=	1.00;
	shipstatsmult.n1.Capacity	=	1.00;
	shipstatsmult.n1.MaxCrew	=	1.00;
	shipstatsmult.n1.MinCrew	=	1.00;
	shipstatsmult.n1.SpeedRate	=	1.00;
	shipstatsmult.n1.TurnRate	=	1.00;
	shipstatsmult.n1.Price		=	1.00;
	shipstatsmult.n1.HP			=	1.00;

	//Spanish
	shipstatsmult.n2.MaxCaliber	=	1.00;
	shipstatsmult.n2.Weight		=	1.00;
	shipstatsmult.n2.Capacity	=	1.05;
	shipstatsmult.n2.MaxCrew	=	1.05;
	shipstatsmult.n2.MinCrew	=	1.00;
	shipstatsmult.n2.SpeedRate	=	0.95;
	shipstatsmult.n2.TurnRate	=	0.95;
	shipstatsmult.n2.Price		=	1.00;
	shipstatsmult.n2.HP			=	1.05;

	//Pirate
	shipstatsmult.n3.MaxCaliber	=	1.50;
	shipstatsmult.n3.Weight		=	0.95;
	shipstatsmult.n3.Capacity	=	0.80;
	shipstatsmult.n3.MaxCrew	=	1.00;
	shipstatsmult.n3.MinCrew	=	1.00;
	shipstatsmult.n3.SpeedRate	=	1.10;
	shipstatsmult.n3.TurnRate	=	1.10;
	shipstatsmult.n3.Price		=	1.06;
	shipstatsmult.n3.HP			=	0.80;

	//Dutch
	shipstatsmult.n4.MaxCaliber	=	1.00;
	shipstatsmult.n4.Weight		=	0.95;
	shipstatsmult.n4.Capacity	=	1.00;
	shipstatsmult.n4.MaxCrew	=	0.95;
	shipstatsmult.n4.MinCrew	=	1.00;
	shipstatsmult.n4.SpeedRate	=	1.05;
	shipstatsmult.n4.TurnRate	=	1.00;
	shipstatsmult.n4.Price		=	1.00;
	shipstatsmult.n4.HP			=	0.95;

	//Portuguese
	shipstatsmult.n5.MaxCaliber	=	1.00;
	shipstatsmult.n5.Weight		=	1.05;
	shipstatsmult.n5.Capacity	=	1.00;
	shipstatsmult.n5.MaxCrew	=	1.05;
	shipstatsmult.n5.MinCrew	=	1.00;
	shipstatsmult.n5.SpeedRate	=	1.00;
	shipstatsmult.n5.TurnRate	=	1.05;
	shipstatsmult.n5.Price		=	1.00;
	shipstatsmult.n5.HP			=	0.95;
	// PRS3 <--

	DeleteAttribute(&ShipLookupTable,"id"); // NK 04-09-09 now using native NFC call; no longer needed. All references commented out below.
    ref refShip;
	SHIP_TYPES_QUANTITY = SHIP_TYPES_QUANTITY_WITH_FORT; // NK reset stq for reinit.
	aref arship;
	for (int idx=0;idx<SHIP_TYPES_QUANTITY;idx++)
	{
		makeref(refShip,ShipsTypes[idx]);
		makearef(arship, ShipsTypes[idx]); // PRS3
		for(int h = 0; h < GetAttributesNum(arship); h++) { DeleteAttribute(arship, GetAttributeName(GetAttributeN(arship, h))); } // NK delete old attribs
		DeleteAttribute(arship,"");

		refShip.index = idx;
		refShip.id = "blank"; // PS
		refShip.chance = 10;

		refShip.InertiaAccelerationX = 0.2;		refShip.InertiaBrakingX = 0.7;
		refShip.InertiaAccelerationY = 0.4;		refShip.InertiaBrakingY = 0.4;
		refShip.InertiaAccelerationZ = 1.0;		refShip.InertiaBrakingZ = 1.0;

		refShip.WaterLine = 0.0;
		refShip.SpeedDependWeight = 0.0;
		refShip.SubSeaDependWeight = 0.0;
		refShip.TurnDependWeight = 0.5; //KNB was 0.0 but all were then each set 0.8
		if(USE_REAL_SAILING) refShip.TurnDependSpeed = 0.95; //NK, 0.8  KNB
		else refShip.TurnDependSpeed = 0.6; // was 0.4

		refShip.Height.Bombs.Y		= 3.0;		refShip.Height.Bombs.DY		= 1.0;
		//refShip.Height.Grapes.Y		= 4.0;		refShip.Height.Grapes.DY	= 1.0;
		refShip.Height.Knippels.Y	= 25.0;		refShip.Height.Knippels.DY	= 15.0;
		refShip.Height.Balls.Y		= 3.0;		refShip.Height.Balls.DY		= 1.0;
		if(USE_REAL_CANNONS)
		{
			refShip.Height.Grapes.Y   = 5.0;    refShip.Height.Grapes.DY  = 1.0;
			refShip.MaxCaliber   = 4;
			refShip.Cannon    = CANNON_TYPE_LONG_LBS4;
		}
		else
		{
			refShip.Height.Grapes.Y		= 4.0;		refShip.Height.Grapes.DY	= 1.0;
			refShip.MaxCaliber	= 12;
			refShip.Cannon		= CANNON_TYPE_CANNON_LBS12;
		}

		aref cannonl, cannonr, cannonb, cannonf;

		refShip.CanEncounter = true;
		// whoops this should be left blank as default refShip.CanBuy = true;
		refShip.Type.Trade = true;
		refShip.Type.War = true;
		
		// PS -->
		/*these override refShip.name for each case
		-Walk is for the big walktype switch in shipwalk.c. Case for this must exist there.
		*This is autogenerated (= *.name) on final loop if it does not already exist.

		-BIPic is the little pic in Battle Interface (i.e. when sailing). Case for this must exist in BI.c
		*This is autogenerated (= *.name) on final loop if it does not already exist.

		-BigPic is the big pic name (in Ships, hold, shipyard, etc.) Must have matching entry in pictures.ini
		*This is autogenerated (= *.name) on final loop if it does not already exist.

		-BigPicTex is for GetShipTexture() and is -1 for unused, 1 for Galeoths (and BP/Warship)
			and 0 for else.
		*This is autogenerated (= 0) on final loop if it does not already exist.

		-BigPicTexName is for GetShipTextureName() and is "", "SHIPS1", and "SHIPS16" respectively as above.
		*This is autogenerated (= SHIPS16) on final loop if it does not already exist.
		
		-SName is for the ship's type name (this is displayed by spyglass, and by BigPic in interfaces),
			so you can have the same model but a different name. :) This is NOT directly displayed;
			it is run through XI_ConvertString, so you must have an entry for this in lang\common.ini
		*This is autogenerated (= *.name) on final loop if it does not already exist.

		-All is for all the above properties, as a shortcut. If this exists, at final loop all above are
			set equal to this. For properties != name, the appropriate property is found from that ship.
			If some properties are already set, they will not be overwritten (i.e. set all to one but
			define walk, all but walk will be overwritten by all's link).
		*THE SHIP LINKED TO MUST ALREADY HAVE BEEN PROCESSED!*/
		
		/*if(CheckAttribute(refShip,"Walk")) { DeleteAttribute(refShip,"Walk"); }
		if(CheckAttribute(refShip,"BIPic")) { DeleteAttribute(refShip,"BIPic"); }
		if(CheckAttribute(refShip,"BigPic")) { DeleteAttribute(refShip,"BigPic"); }
		if(CheckAttribute(refShip,"BigPicTex")) { DeleteAttribute(refShip,"BigPicTex"); }
		if(CheckAttribute(refShip,"BigPicName")) { DeleteAttribute(refShip,"BigPicTexName"); }
		if(CheckAttribute(refShip,"SName")) { DeleteAttribute(refShip,"SName"); }
		if(CheckAttribute(refShip,"All")) { DeleteAttribute(refShip,"All"); }*/
		// PS <--

		refShip.FireHeight = 3.0;
		// NK declare cannon
		ShipsTypes[idx].Cannons.Borts.cannonl = "";
		ShipsTypes[idx].Cannons.Borts.cannonr = "";
		ShipsTypes[idx].Cannons.Borts.cannonf = "";
		ShipsTypes[idx].Cannons.Borts.cannonb = "";
		makearef(cannonl,ShipsTypes[idx].Cannons.Borts.cannonl);
		makearef(cannonr,ShipsTypes[idx].Cannons.Borts.cannonr);
		makearef(cannonf,ShipsTypes[idx].Cannons.Borts.cannonf);
		makearef(cannonb,ShipsTypes[idx].Cannons.Borts.cannonb);
		// NK add qtys 05-04-18 -->
		cannonf.qty = -1;
		cannonr.qty = -1;
		cannonb.qty = -1;
		cannonl.qty = -1;
		// NK <--
		if(USE_REAL_CANNONS)
		{
			cannonf.FireZone  = Degree2Radian(20.0) * FIRE_ANGLE_SCALAR_W;
			cannonf.FireDir   = Degree2Radian(0.0);
			cannonf.FireAngMin  = Degree2Radian(-2.5) * FIRE_ANGLE_SCALAR_H;
			cannonf.FireAngMax  = Degree2Radian(5.0) * FIRE_ANGLE_SCALAR_H;

			cannonr.FireZone  = Degree2Radian(30.0) * FIRE_ANGLE_SCALAR_W;
			cannonr.FireDir   = Degree2Radian(90.0);
			cannonr.FireAngMin  = Degree2Radian(-2.5) * FIRE_ANGLE_SCALAR_H;
			cannonr.FireAngMax  = Degree2Radian(5.0) * FIRE_ANGLE_SCALAR_H;

			cannonb.FireZone  = Degree2Radian(20.0) * FIRE_ANGLE_SCALAR_W;
			cannonb.FireDir   = Degree2Radian(180.0);
			cannonb.FireAngMin  = Degree2Radian(-2.5) * FIRE_ANGLE_SCALAR_H;
			cannonb.FireAngMax  = Degree2Radian(5.0) * FIRE_ANGLE_SCALAR_H;

			cannonl.FireZone  = Degree2Radian(30.0) * FIRE_ANGLE_SCALAR_W;
			cannonl.FireDir   = Degree2Radian(270.0);
			cannonl.FireAngMin  = Degree2Radian(-2.5) * FIRE_ANGLE_SCALAR_H;
			cannonl.FireAngMax  = Degree2Radian(5.0) * FIRE_ANGLE_SCALAR_H;
		}
		else
		{
			cannonf.FireZone	= Degree2Radian(30.0) * FIRE_ANGLE_SCALAR_W;
			cannonf.FireDir		= Degree2Radian(0.0);
			cannonf.FireAngMin	= -0.35 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
			cannonf.FireAngMax	= 0.60 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
	
			cannonr.FireZone	= Degree2Radian(80.0) * FIRE_ANGLE_SCALAR_W;
			cannonr.FireDir		= Degree2Radian(90.0);
			cannonr.FireAngMin	= -0.35 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
			cannonr.FireAngMax	= 0.60 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
	
			cannonb.FireZone	= Degree2Radian(30.0) * FIRE_ANGLE_SCALAR_W;
			cannonb.FireDir		= Degree2Radian(180.0);
			cannonb.FireAngMin	= -0.35 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
			cannonb.FireAngMax	= 0.60 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
	
			cannonl.FireZone	= Degree2Radian(80.0) * FIRE_ANGLE_SCALAR_W;
			cannonl.FireDir		= Degree2Radian(270.0);
			cannonl.FireAngMin	= -0.35 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
			cannonl.FireAngMax	= 0.60 * FIRE_ANGLE_SCALAR_H*0.5; // NK 04-09-09
		}
	}
	// PS -->
	// PRS2 holdover... if(CheckAttribute(ShipLookupTable,"id")) DeleteAttribute(ShipLookupTable,"id");
	int n = 0; // first ship
	string curid;
	// PS <--
//-------------------------------------------------------------------------
// Tartane
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_TARTANE]);
	refShip.Name			= "Tartane1";
	refShip.id				= "Tartane1"; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 7;
	refShip.Cannon		  = CANNON_TYPE_NONECANNON;
	refShip.MaxCaliber	  = 0;
	refShip.Weight			= Tonnes2CWT(10);
	refShip.Capacity		= 50;
	refShip.CannonsQuantity = 0;
	refShip.MaxCrew		 = 12;
	refShip.MinCrew		 = 3;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 50;
	refShip.Price			= 1000; // NK

	refShip.HP			  = 100;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 0; // KK
	refShip.Cabin = "Cabin_none"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	// KK refShip.AbordageLocation = "BOARDING_TARTANE"; // MAXIMUS


//-------------------------------------------------------------------------
// Tartane2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_TARTANE2]);
	refShip.Name			= "Tartane2";
	refShip.id				= refShip.Name;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 7;
	refShip.Cannon		  = CANNON_TYPE_NONECANNON;
	refShip.MaxCaliber	  = 0;
	refShip.Weight			= Tonnes2CWT(10);
	refShip.Capacity		= 50;
	refShip.CannonsQuantity = 0;
	refShip.MaxCrew		 = 12;
	refShip.MinCrew		 = 3;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 50;
	refShip.Price			= 1000;

	refShip.HP			  = 100;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 0; // KK
	refShip.Cabin = "Cabin_none"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	// NK 04-12 move canenc here - refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	// KK refShip.AbordageLocation = "BOARDING_TARTANE"; // MAXIMUS


//-------------------------------------------------------------------------
// Yacht1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_YACHT_FRANCE]);
	refShip.Name			= "Yacht1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 800;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 60;
	refShip.MinCrew		 = 12;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 42;
	refShip.Price		   = 19000;
	refShip.HP			  = 700;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.03;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 2.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 4.0;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;


	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//-------------------------------------------------------------------------
// Yacht2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_YACHT2_FRANCE]);
	refShip.Name			= "Yacht2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 800;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 60;
	refShip.MinCrew		 = 12;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 42;
	refShip.Price		   = 19000;
	refShip.HP			  = 700;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = -0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 2.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 4.0;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//-------------------------------------------------------------------------
// Barque1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BARQUE_FRANCE]);
	refShip.Name			= "Barque1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(350);
	refShip.Capacity		= 1200;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 80;
	refShip.MinCrew		 = 16;
	refShip.SpeedRate		= 10;
	refShip.TurnRate		= 37;
	refShip.Price		   = 18000;
	refShip.HP			  = 800;
	refShip.SP			  = 100;
	//refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 1.0;	refShip.InertiaBrakingX		= 1.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 4.0;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 2.0;

//-------------------------------------------------------------------------
// Barque2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BARQUE2_FRANCE]);
	refShip.Name			= "Barque2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(350);
	refShip.Capacity		= 1200;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 80;
	refShip.MinCrew		 = 16;
	refShip.SpeedRate		= 10;
	refShip.TurnRate		= 37;
	refShip.Price		   = 18000;
	refShip.HP			  = 800;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 1.0;	refShip.InertiaBrakingX		= 1.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 4.0;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 2.0;

//-------------------------------------------------------------------------
// Lugger1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_LUGGER_FRANCE]);
	refShip.Name			= "Lugger1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(120);
	refShip.Capacity		= 500;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 50;
	refShip.MinCrew		 = 10;
	refShip.SpeedRate	   = 14;
	refShip.TurnRate		= 50;
	refShip.Price		   = 20000;
	refShip.HP			  = 500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//-------------------------------------------------------------------------
// Lugger2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_LUGGER2_FRANCE]);
	refShip.Name			= "Lugger2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(120);
	refShip.Capacity		= 500;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 50;
	refShip.MinCrew		 = 10;
	refShip.SpeedRate	   = 14;
	refShip.TurnRate		= 50;
	refShip.Price		   = 20000;
	refShip.HP			  = 500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//-------------------------------------------------------------------------
// Galeoth1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEOTH_FRANCE]);
	refShip.Name			= "Galeoth1";
	refShip.BigPicTex		= 1; // PS
	refShip.BigPicTexName	= "SHIPS1"; // PS
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 5;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(150);
	refShip.Capacity		= 700;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 90;
	refShip.MinCrew		 = 18;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		= 45;
	refShip.Price		   = 27000;
	refShip.HP			  = 1000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = -0.5;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 9;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

//-------------------------------------------------------------------------
// Galeoth2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEOTH2_FRANCE]);
	refShip.Name			= "Galeoth2";
	refShip.BigPicTex		= 1; // PS
	refShip.BigPicTexName	= "SHIPS1"; // PS
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 5;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(150);
	refShip.Capacity		= 700;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 90;
	refShip.MinCrew		 = 18;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		= 45;
	refShip.Price		   = 27000;
	refShip.HP			  = 1000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = -0.5;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.8;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 9;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

//-------------------------------------------------------------------------
// Xebec1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_XEBEC_FRANCE]);
	refShip.Name			= "Xebec1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 1000;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 20;
	refShip.SpeedRate	   = 13;
	refShip.TurnRate		= 50;
	refShip.Price		   = 30000;
	refShip.HP			  = 1500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_XEBEC";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 15;	refShip.InertiaBrakingY		= 10;
	refShip.InertiaAccelerationZ	= 9.0;	refShip.InertiaBrakingZ		= 6.0;

//-------------------------------------------------------------------------
// Xebec2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_XEBEC2_FRANCE]);
	refShip.Name			= "Xebec2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 1000;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 20;
	refShip.SpeedRate	   = 13;
	refShip.TurnRate		= 50;
	refShip.Price		   = 30000;
	refShip.HP			  = 1500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_XEBEC";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 15;	refShip.InertiaBrakingY		= 10;
	refShip.InertiaAccelerationZ	= 9.0;	refShip.InertiaBrakingZ		= 6.0;

//-------------------------------------------------------------------------
// Sloop1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SLOOP_FRANCE]);
	refShip.Name			= "Sloop1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 5;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(170);
	refShip.Capacity		= 800;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 20;
	refShip.SpeedRate		= 14;
	refShip.TurnRate		= 55;
	refShip.Price		   = 25000;
	refShip.HP			  = 1200;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

	// LDH changed 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

//-------------------------------------------------------------------------
// Sloop2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SLOOP2_FRANCE]);
	refShip.Name			= "Sloop2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 5;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(170);
	refShip.Capacity		= 800;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 20;
	refShip.SpeedRate		= 14;
	refShip.TurnRate		= 55;
	refShip.Price		   = 25000;
	refShip.HP			  = 1200;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

	// LDH changed 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

//-------------------------------------------------------------------------
// Schooner1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SCHOONER_FRANCE]);
	refShip.Name			= "Schooner1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9; // NK give L9s
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 1200;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 120;
	refShip.MinCrew		 = 24;
	refShip.SpeedRate		= 16;
	refShip.TurnRate		= 45;
	refShip.Price		   = 35000;
	refShip.HP			  = 1800;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 4.0;


	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//-------------------------------------------------------------------------
// Schooner2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SCHOONER2_FRANCE]);
	refShip.Name			= "Schooner2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9; // NK give L9s
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 1200;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 120;
	refShip.MinCrew		 = 24;
	refShip.SpeedRate		= 16;
	refShip.TurnRate		= 45;
	refShip.Price		   = 35000;
	refShip.HP			  = 1800;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//-------------------------------------------------------------------------
// Caravel1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CARAVEL_FRANCE]);
	refShip.Name			= "Caravel1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 2500;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 240;
	refShip.MinCrew		 = 48;
	refShip.SpeedRate		= 8.0;
	refShip.TurnRate		= 25;
	refShip.Price		   = 45000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//-------------------------------------------------------------------------
// Caravel2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CARAVEL2_FRANCE]);
	refShip.Name			= "Caravel2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 2500;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 240;
	refShip.MinCrew		 = 48;
	refShip.SpeedRate		= 8.0;
	refShip.TurnRate		= 25;
	refShip.Price		   = 45000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//-------------------------------------------------------------------------
// Fleut1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FLEUT_FRANCE]);
	refShip.Name			= "Fleut1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 2800;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 270;
	refShip.MinCrew		 = 54;
	refShip.SpeedRate		= 10.0;
	refShip.TurnRate		= 30;
	refShip.Price		   = 55000;
	refShip.HP			  = 3000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

//-------------------------------------------------------------------------
// Fleut2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FLEUT2_FRANCE]);
	refShip.Name			= "Fleut2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 2800;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 270;
	refShip.MinCrew		 = 54;
	refShip.SpeedRate		= 10.0;
	refShip.TurnRate		= 30;
	refShip.Price		   = 55000;
	refShip.HP			  = 3000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

//-------------------------------------------------------------------------
// Brig1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG_FRANCE]);
	refShip.Name			= "Brig1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity = 22; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 160;
	refShip.MinCrew		 = 32;
	refShip.SpeedRate	   = 14.0;
	refShip.TurnRate		= 40;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Brig2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG2_FRANCE]);
	refShip.Name			= "Brig2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_CARRONADE_LBS18;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity = 22; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 160;
	refShip.MinCrew		 = 32;
	refShip.SpeedRate	   = 14.0;
	refShip.TurnRate		= 40;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Galeon1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEON_FRANCE]);
	refShip.Name			= "Galeon1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 4000;
	refShip.CannonsQuantity = 38;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 450;
	refShip.MinCrew		 = 90;
	refShip.SpeedRate		= 9.0;
	refShip.TurnRate		= 20;
	refShip.Price		   = 90000;
	refShip.HP			  = 5000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;


//-------------------------------------------------------------------------
// Heavy Galeon (Galeon2)
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEON2_FRANCE]);
	refShip.Name			= "Galeon2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(900);
	refShip.Capacity		= 4800;
	refShip.CannonsQuantity = 38;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 500;
	refShip.MinCrew		 = 100;
	refShip.SpeedRate		= 8.5;
	refShip.TurnRate		= 20;
	refShip.Price		   = 90000;
	refShip.HP			  = 5700;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_a2	= 1;
	refShip.GeraldSails.rey_a3	= 1;

//-------------------------------------------------------------------------
// Pinnace1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_PINNACE_FRANCE]);
	refShip.Name			= "Pinnace1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(550);
	refShip.Capacity		= 3200;
	refShip.CannonsQuantity = 24;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6;
	// NK <--
	refShip.MaxCrew		 = 300;
	refShip.MinCrew		 = 60;
	refShip.SpeedRate		= 11;
	refShip.TurnRate		= 27;
	refShip.Price		   = 70000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.5;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Pinnace2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_PINNACE2_FRANCE]);
	refShip.Name			= "Pinnace2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(550);
	refShip.Capacity		= 3200;
	refShip.CannonsQuantity = 24;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6;
	// NK <--
	refShip.MaxCrew		 = 300;
	refShip.MinCrew		 = 60;
	refShip.SpeedRate		= 11;
	refShip.TurnRate		= 27;
	refShip.Price		   = 70000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.1;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Corvette1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_FRANCE]);
	refShip.Name			= "Corvette1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 300;		// LDH was 200 12Sep06
	refShip.MinCrew		 = 60;		// LDH was 40
	refShip.SpeedRate		= 14.5;
	refShip.TurnRate		= 37;
	refShip.Price		   = 120000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Corvette2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE2_FRANCE]);
	refShip.Name			= "Corvette2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 300;		// LDH was 200 12Sep06
	refShip.MinCrew		 = 60; 		// LDH was 40 
	refShip.SpeedRate		= 14.5;
	refShip.TurnRate		= 37;
	refShip.Price		   = 120000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Frigate1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_FRANCE]);
	refShip.Name			= "Frigate1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2500;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate	   = 13;
	refShip.TurnRate		= 33;
	refShip.Price		   = 150000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Frigate2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE2_FRANCE]);
	refShip.Name			= "Frigate2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2500;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate	   = 13;
	refShip.TurnRate		= 33;
	refShip.Price		   = 150000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Frigate SATANIST
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_SAT]);
	refShip.Name			= "Frigate_sat";
	refShip.Nation			= PIRATE; // NK
	refShip.unique			= true; // PRS3
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	/* NK give it L24s refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;*/
	refShip.Cannon		= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1100);
	refShip.Capacity		= 2500;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 95;
	refShip.SpeedRate	   = 14.4;
	refShip.TurnRate		= 35;
	refShip.Price		   = 180000;
	refShip.HP			  = 6500;
	refShip.SP			  = 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_whole_red_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_whole_red_plain.tga";
	refShip.Viper_SailsTypeType = 0;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 2;
	refShip.Viper_SailsTypeDesign = 0;
	// refShip.AbordageLocation = "BOARDING_CORVETTE";
// <-- KK

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//-------------------------------------------------------------------------
// WARSHIP1
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Warship1";
	refShip.id				= refShip.Name;
	refShip.walk			= "Warship"; // PB
	refShip.BIPic			= "Warship"; // PB
	refShip.BigPic			= "Warship"; // KK
	refShip.BigPicTex		= 1; // KK
	refShip.BigPicTexName	= "SHIPS1"; // KK
	refShip.SName			= "Warship"; // KK
	refShip.Class			= 2; // NK - 1
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KK: 19 on each bort+4 stern+2 bow
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 580;
	refShip.MinCrew 		= 116;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 26;
	refShip.Price			= 250000;
	refShip.HP				= 9000;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	// NK 04-12 move canenc here - refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	// NK -->
	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	// NK <--

//-------------------------------------------------------------------------
// Battleship1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BATTLESHIP_FRANCE]);
	refShip.Name			= "Battleship1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5000;
	refShip.CannonsQuantity = 70;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 650;
	refShip.MinCrew		 = 130;
	refShip.SpeedRate		= 11.5;
	refShip.TurnRate		= 25;
	refShip.Price		   = 275000; // NK - 200000
	refShip.HP			  = 10000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Battleship2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BATTLESHIP2_FRANCE]);
	refShip.Name			= "Battleship2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5000;
	refShip.CannonsQuantity = 70;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 650;
	refShip.MinCrew		 = 130;
	refShip.SpeedRate		= 11.5;
	refShip.TurnRate		= 25;
	refShip.Price		   = 275000; // NK - 200000
	refShip.HP			  = 10000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Manowar1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_MANOWAR_FRANCE]);
	refShip.Name			= "Manowar1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(3500);
	refShip.Capacity		= 6000;
	refShip.CannonsQuantity = 100;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 8;
	// NK <--
	refShip.MaxCrew		 = 1000;
	refShip.MinCrew		 = 200;
	refShip.SpeedRate		= 11;
	refShip.TurnRate		= 20;
	refShip.Price		   = 400000; // NK - 300000;
	refShip.HP			  = 15000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	// NK 04-12 move canenc here - refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Manowar2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_MANOWAR2_FRANCE]);
	refShip.Name			= "Manowar2";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(3500);
	refShip.Capacity		= 6000;
	refShip.CannonsQuantity = 100;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 8;
	// NK <--
	refShip.MaxCrew		 = 1000;
	refShip.MinCrew		 = 200;
	refShip.SpeedRate		= 11;
	refShip.TurnRate		= 20;
	refShip.Price		   = 400000; // NK - 300000;
	refShip.HP			  = 15000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	// NK 04-12 move canenc here - refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;


//-------------------------------------------------------------------------
// Manowar_gub
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_MANOWAR_GUB]);
	refShip.Name			= "Manowar_gub";
	// NK - refShip.Nation			= ENGLAND;
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
/*	refShip.Weight			= Tonnes2CWT(3500);
	refShip.Capacity		= //5400;
	refShip.CannonsQuantity = 100;
	refShip.MaxCrew		 = 950;
	refShip.MinCrew		 = 210;
	refShip.SpeedRate		= 13.65;
	refShip.TurnRate		= 21;
	refShip.Price		   = 400000; // NK - 300000;
	refShip.HP			  = 15000;
	refShip.SP			  = 100;*/
	// PRS3 use orig properties
	refShip.Weight			= Tonnes2CWT(3500);
	refShip.Capacity		= 6000;
	refShip.CannonsQuantity = 100;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 8;
	// NK <--
	refShip.MaxCrew		 = 1000;
	refShip.MinCrew		 = 200;
	refShip.SpeedRate		= 11;
	refShip.TurnRate		= 20;
	refShip.Price		   = 400000; // NK - 300000;
	refShip.HP			  = 15000;
	refShip.SP			  = 100;
	// PRS3 <--
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	// NK 04-12 move canenc here - refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//------------------------------ADD NEW SHIP-------------------------------//

//-------------------------------------------------------------------------
// Xebec Barbarossa, By Duke Surak'nar, 17/08/2003
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_XEBEC_BARBAROSSA]);
	refShip.Name		= "Xebec3";
	// PS -->
	refShip.Walk		= "Xebec1";
	// PS <--
	refShip.id			= refShip.Name; // PSX
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		= 4;
	refShip.Cannon		= CANNON_TYPE_LONG_LBS12; // give L12s NK
	refShip.MaxCaliber	 = 12;
	refShip.Weight		= Tonnes2CWT(250);
	refShip.Capacity	= 1400;
	refShip.CannonsQuantity	= 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		= 125;
	refShip.MinCrew		= 20;
	refShip.SpeedRate = 15.0; //KNB //will be modded back up via random
	refShip.TurnRate	= 47; // ditto
	refShip.Price		= 35000; // NK
	refShip.HP			= 2100;
	refShip.SP			= 100;
	// KK refShip.AbordageLocation = "BOARDING_XEBEC";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

// KK -->
	refShip.EmblemedSails.normalTex = "sail_barbarossa_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_barbarossa_plain.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- KK

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.2;
	refShip.SubSeaDependWeight = 0.2;
	refShip.TurnDependWeight = 0.4;

	refShip.CanEncounter	= true; 	//if you don't want the ship to be encounter change this to "false"

	refShip.InertiaAccelerationX	= 1.5;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 15;	refShip.InertiaBrakingY		= 10;
	refShip.InertiaAccelerationZ	= 9.0;	refShip.InertiaBrakingZ		= 6.0;



//-----------------------START ADDED BY VERRUCKT---------------------------
// Lineship1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Lineship1";
	refShip.id				= refShip.Name;
	refShip.walk			= "Lineship"; // PB
	refShip.BIPic			= "Lineship"; // PB
	refShip.BigPic			= "Lineship"; // KK
	refShip.BigPicTex		= 1; // KK
	refShip.BigPicTexName	= "SHIPS1"; // KK
	refShip.SName			= "Lineship"; // KK
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1620);
	refShip.Capacity		= 2450;
	refShip.CannonsQuantity = 40; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew			= 500;
	refShip.MinCrew			= 115;
	refShip.SpeedRate		= 14.1;
	refShip.TurnRate		= 31.8;
	refShip.Price			= 250000;
	refShip.HP				= 6700;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Corvette PIRATE from Russian patch
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_PIRATE]);
	refShip.Name			= "Corvette3";
	refShip.All				= "Corvette1"; // PS
	//PRS3 - refShip.Nation			= PIRATE;
	refShip.id				= refShip.Name;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(570);
	refShip.Capacity		= 1600; // NK was 1500, now up to 80%
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 300;		// LDH was 200 12Sep06
	refShip.MinCrew		 = 58; 		// LDH was 38 
	refShip.SpeedRate		= 15.0; // NK - 18.5
	refShip.TurnRate		= 40; // NK - 45;
	refShip.Price		   = 125000;
	refShip.HP			  = 3900;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-----------------------STOP ADDED BY VERRUCKT----------------------------

//NK -->
//-------------------------------------------------------------------------
// Frigate Super, because I hate how the Mephisto looks. ;)
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_PIRATE]);
	//refShip.Name = "Frigate1";
	refShip.Name			= "FrigateNKSup";
	refShip.all = "frigate1"; // NK added 04-09-10 because I'm adding a new model, whoopee.
	refShip.SName = "FrigateNKSup"; // to distinguish from normal frigates
	//refShip.Nation			= PIRATE;
	refShip.id				= "FrigateNKSup"; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1100);
	refShip.Capacity		= 2200;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 100;
	refShip.SpeedRate	   = 14.6;
	refShip.TurnRate		= 34.5;
	refShip.Price		   = 180000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
		refShip.Type.Trade = false;
		refShip.Type.War = true;

//-------------------------------------------------------------------------
// Frigate PIRATE from A&M
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_PIRATE+21]);
	refShip.Name			= "Frigate3";
	refShip.All				= "Frigate2"; // PS
	//PRS3 - refShip.Nation			= PIRATE;
	refShip.id				= refShip.Name;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24; // give L24s NK
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(950);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 400;
	refShip.MinCrew 		= 84;
	refShip.SpeedRate		= 14.1;
	refShip.TurnRate		= 33.5;
	refShip.Price			= 156000;
	refShip.HP				= 5800;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY 	= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ 	= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
//	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
		refShip.Type.Trade = false;
		refShip.Type.War = true;

// NK <--

//---------------START LINESHIP AND WARSHIP (TEX BY MORGAN)----------------
// Lineship2
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Lineship2";
	refShip.id				= refShip.Name;
	refShip.all				= "Lineship1"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1700);
	refShip.Capacity		= 3000;
	refShip.CannonsQuantity = 40; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 500;
	refShip.MinCrew 		= 100;
	refShip.SpeedRate		= 12.5;
	refShip.TurnRate		= 28;
	refShip.Price			= 225000;
	refShip.HP				= 7600;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
//	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Lineship3
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Lineship3";
	refShip.id				= refShip.Name;
	refShip.all				= "Lineship1"; // PB
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1700);
	refShip.Capacity		= 3000;
	refShip.CannonsQuantity = 40; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 500;
	refShip.MinCrew 		= 100;
	refShip.SpeedRate		= 12.5;
	refShip.TurnRate		= 28;
	refShip.Price			= 225000;
	refShip.HP				= 7600;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
//	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Warship2
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Warship2";
	refShip.id				= refShip.Name;
	refShip.all				= "Warship1"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KK: 19 on each bort+4 stern+2 bow
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 580;
	refShip.MinCrew 		= 116;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 26;
	refShip.Price			= 250000;
	refShip.HP				= 9000;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
//	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Warship3
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Warship3";
	refShip.id				= refShip.Name;
	refShip.all				= "Warship1"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KK: 19 on each bort+4 stern+2 bow
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 580;
	refShip.MinCrew 		= 116;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 26;
	refShip.Price			= 250000;
	refShip.HP				= 9000;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
//	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

 //-------ADD NEW SHIPS HERE-------

//-------------------------------------------------------------------------
// Gunboat  --  Skeleton Bob & Fred Bob  --  05/16/2004
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name		= "Gunboat";
	refShip.all		= "Tartane1";
	refShip.sname		= "Gunboat";
	refShip.No_NK_HFM_modstats = true;
	refShip.rigtype = "tar"; 
	refShip.ClosestPoint = 0.2; 
	refShip.BestPoint = 0.6; 
	refShip.id 		= refShip.Name; // PSX
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 7;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(15);
	refShip.Capacity		 = 55;
	refShip.CannonsQuantity = 5;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 1;
	refShip.Cannons.Borts.cannonb.qty = 0;
	// NK <--
	refShip.MaxCrew	 = 30;
	refShip.MinCrew	 = 3;
	refShip.SpeedRate		= 12;
	refShip.TurnRate		 = 60;
	refShip.Price			= 1500;

	refShip.HP 		   = 150;
	refShip.SP 		   = 100;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;
 
	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	// KK refShip.AbordageLocation = "BOARDING_TARTANE"; // NK add this and the heights.

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 0; // KK
	refShip.Cabin = "Cabin_none"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;


	// LDH changed 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;
//	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
//	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
//	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;
	if(USE_REAL_CANNONS)
	{
		refShip.Cannons.Borts.cannonf.FireZone	= Degree2Radian(10.0);
		refShip.Cannons.Borts.cannonf.FireDir	 = Degree2Radian(0.0);
		refShip.Cannons.Borts.cannonf.FireAngMin	= Degree2Radian(-2.5) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonf.FireAngMax	= Degree2Radian(5.0) * FIRE_ANGLE_SCALAR_H;
	
		refShip.Cannons.Borts.cannonr.FireZone	= Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonr.FireDir	 = Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonr.FireAngMin	= Degree2Radian(-5.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonr.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	
		refShip.Cannons.Borts.cannonb.FireZone	= Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonb.FireDir	 = Degree2Radian(180.0);
		refShip.Cannons.Borts.cannonb.FireAngMin	= Degree2Radian(-5.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonb.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	
		refShip.Cannons.Borts.cannonl.FireZone	= Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonl.FireDir	 = Degree2Radian(270.0);
		refShip.Cannons.Borts.cannonl.FireAngMin	= Degree2Radian(-5.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonl.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	}

//-------------------------------------------------------------------------
// Lugger CT, By CatalinaThePirate, 01/03/2004
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name		= "LuggerCT";
	// PS -->
	refShip.all		= "Lugger1";
	refShip.sname		= "LuggerCT";
	refShip.No_NK_HFM_modstats = true;
	refShip.noNatStatMod = true; // PRS3 04-09-10
	// PS <--
	refShip.id 		= refShip.Name; // PSX
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 6;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight 		 = Tonnes2CWT(126);
	refShip.Capacity		 = 500;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	 = 53;
	refShip.MinCrew	 = 10;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		 = 55;
	refShip.Price			= 20000;
	refShip.HP 		   = 475;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_LUGGER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
 
	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;
 
	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	refShip.InertiaBrakingY	 = 8;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 2.0;

	// LDH added 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

//-------------------------------------------------------------------------
// Lugger CT2, By CatalinaThePirate, 01/03/2004
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name		= "LuggerCT2";
	// PS -->
	refShip.all		= "Lugger2";
	refShip.sname		= "LuggerCT2";
	refShip.No_NK_HFM_modstats = true;
	refShip.noNatStatMod = true; // PRS3 04-09-10
	// PS <--
	refShip.id 		= refShip.Name; // PSX
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 6;
	refShip.Cannon 	   = CANNON_TYPE_LONG_LBS9;	// LDH was CANNON_TYPE_CANNON_LBS12 12Sep06
	refShip.MaxCaliber    = 9;					// LDH was 12
	refShip.Weight 		 = Tonnes2CWT(126);
	refShip.Capacity		 = 500;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	 = 53;
	refShip.MinCrew	 = 10;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		 = 55;
	refShip.Price			= 20000;
	refShip.HP 		   = 475;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_LUGGER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
 
	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	refShip.TurnDependWeight = 0.8;
 
	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	refShip.InertiaBrakingY	 = 8;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 2.0;

	// LDH added 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;
	
//-------------------------------------------------------------------------
// Lugger CT3, By CatalinaThePirate, 01/03/2004
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name		= "LuggerCT3";
	// PS -->
	refShip.all		= "Lugger2";
	refShip.sname		= "LuggerCT3";
	refShip.No_NK_HFM_modstats = true;
	refShip.noNatStatMod = true; // PRS3 04-09-10
	// PS <--
	refShip.id 		= refShip.Name; // PSX
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 6;
	refShip.Cannon 	   = CANNON_TYPE_LONG_LBS9;	// LDH was CANNON_TYPE_CANNON_LBS12 12Sep06 // KK
	refShip.MaxCaliber    = 9; // KK
	refShip.Weight 		 = Tonnes2CWT(126);
	refShip.Capacity		 = 500;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	 = 53;
	refShip.MinCrew	 = 10;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		 = 55;
	refShip.Price			= 20000;
	refShip.HP 		   = 475;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_LUGGER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
 
	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	refShip.TurnDependWeight = 0.8;
 
	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	refShip.InertiaBrakingY	 = 8;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 2.0;

	// LDH added 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;
 
 //-------------------------------------------------------------------------
 // Xebec CT, By CatalinaThePirate, 01/03/2004
 //-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name       = "XebecCT";
	// PS -->
	refShip.all      = "Xebec1";
	refShip.sname      = "XebecCT";
	refShip.No_NK_HFM_modstats = true;
	refShip.noNatStatMod = true; // PRS3 04-09-10
	// PS <--
	refShip.id        = refShip.Name; // PSX
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class       = 4;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber	 = 12;
	refShip.Weight     = Tonnes2CWT(250);
	refShip.Capacity    = 1900;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew    = 125;
	refShip.MinCrew    = 20;
	refShip.SpeedRate		= 15.2; // KNB
	refShip.TurnRate    = 50;
	refShip.Price       = 33000;
	refShip.HP        = 2100;
	refShip.SP        = 100;
	// KK refShip.AbordageLocation = "BOARDING_XEBEC";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.2;
	refShip.SubSeaDependWeight = 0.2;
	refShip.TurnDependWeight = 0.4;

	refShip.CanEncounter   = true;    //if you don't want the ship to be encounter change this to "false"

	refShip.InertiaAccelerationX   = 1.5;   refShip.InertiaBrakingX      = 2.0;
	refShip.InertiaAccelerationY   = 15;   refShip.InertiaBrakingY      = 10;
	refShip.InertiaAccelerationZ   = 9.0;   refShip.InertiaBrakingZ      = 6.0; 

//----------------------Muddymonkey--------------------------------------------------- 
// Weathered Lugger, Skin by Rafe Bligh       Code by Muddymonkey
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Lugger5_44";
	refShip.All            = "Lugger2";
	refShip.SName            = "Lugger5_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(120);
	refShip.Capacity		= 450;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 57;
	refShip.MinCrew		 = 11;
	refShip.SpeedRate	   = 14;
	refShip.TurnRate		= 50;
	refShip.Price		   = 20000;
	refShip.HP			  = 500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//----------------------Muddymonkey--------------------------------------------------- 
// Weathered Brig, Skin by Rafe Bligh       Code by Muddymonkey
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Brig3_44";
	refShip.All            = "Brig2";
	refShip.SName            = "Brig3_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1350;
	refShip.CannonsQuantity = 22; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 152;
	refShip.MinCrew		 = 34;
	refShip.SpeedRate	   = 14.7;
	refShip.TurnRate		= 42;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------Muddymonkey--------------------------------------------------- 
// Weathered Frigate 1, Skin by Rafe Bligh       Code by Muddymonkey
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Frigate4_44";
	refShip.All            = "Frigate1";
	refShip.SName            = "Frigate4_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2250;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 380;
	refShip.MinCrew		 = 84;
	refShip.SpeedRate	   = 13.7;
	refShip.TurnRate		= 33.5;
	refShip.Price		   = 150000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------Muddymonkey--------------------------------------------------- 
// Weathered Frigate 2, Skin by Rafe Bligh       Code by Muddymonkey
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Frigate5_44";
	refShip.All            = "Frigate2";
	refShip.SName            = "Frigate5_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2250;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 380;
	refShip.MinCrew		 = 84;
	refShip.SpeedRate	   = 13.7;
	refShip.TurnRate		= 33.5;
	refShip.Price		   = 150000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------Muddymonkey--------------------------------------------------- 
// Weathered Corvette, Skin by Rafe Bligh       Code by Muddymonkey
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Corvette4_44";
	refShip.All            = "Corvette2";
	refShip.SName            = "Corvette4_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1800;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 290;		// LDH was 190 12Sep06
	refShip.MinCrew		 = 62; 		// LDH was 42 
	refShip.SpeedRate		= 14.8;
	refShip.TurnRate		= 37.25;
	refShip.Price		   = 120000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------Muddymonkey--------------------------------------------------- 
// Weathered Battleship, Skin by Rafe Bligh       Code by Muddymonkey
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Battleship3_44";
	refShip.All            = "Battleship1";
	refShip.SName            = "Battleship3_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 4500;
	refShip.CannonsQuantity = 70;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 685;		// LDH was 618 12Sep06
	refShip.MinCrew		 = 137;
	refShip.SpeedRate		= 11.6;
	refShip.TurnRate		= 26.5;
	refShip.Price		   = 275000; // NK - 200000
	refShip.HP			  = 10000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 2 // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------iamthejarha--------------------------------------------------- 
// Weathered Lugger 2, Skin by Rafe Bligh       Code by Muddymonkey/iamthejarha
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Lugger6_44";
	refShip.All            = "Lugger2";
	refShip.SName            = "Lugger6_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 6;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(120);
	refShip.Capacity		= 450;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 57;
	refShip.MinCrew		 = 11;
	refShip.SpeedRate	   = 14.0;
	refShip.TurnRate		= 50;
	refShip.Price		   = 20000;
	refShip.HP			  = 500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//----------------------iamthejarha--------------------------------------------------- 
// Weathered Brig 2, Skin by Rafe Bligh       Code by Muddymonkey/iamthejarha
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Brig4_44";
	refShip.All            = "Brig2";
	refShip.SName            = "Brig4_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1350;
	refShip.CannonsQuantity = 22; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 152;
	refShip.MinCrew		 = 34;
	refShip.SpeedRate	   = 14.7;
	refShip.TurnRate		= 42;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------iamthejarha--------------------------------------------------- 
// Weathered Corvette 2, Skin by Rafe Bligh       Code by Muddymonkey/iamthejarha
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Corvette5_44";
	refShip.All            = "Corvette2";
	refShip.SName            = "Corvette5_44";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1800;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 290;		// LDH was 190 12Sep06
	refShip.MinCrew		 = 62; 		// LDH was 42 
	refShip.SpeedRate		= 14.8;
	refShip.TurnRate		= 37.25;
	refShip.Price		   = 120000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------iamthejarha--------------------------------------------------- 
// Weathered Manowar, Skin by Rafe Bligh       Code by Muddymonkey/iamthejarha
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Manowar3_44";
	refShip.All			= "Manowar2";
	refShip.SName			= "Manowar3_44";
	refShip.id				= refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(3500);
	refShip.Capacity		= 5400;
	refShip.CannonsQuantity = 100;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 8;
	// NK <--
	refShip.MaxCrew		 = 950;
	refShip.MinCrew		 = 210;
	refShip.SpeedRate		= 11.65;
	refShip.TurnRate		= 21;
	refShip.Price		   = 400000;
	refShip.HP			  = 15000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	// refShip.CanEncounter	= false;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//----------------------iamthejarha--------------------------------------------------- 
// Weathered Schooner, Skin by Rafe Bligh       Code by Muddymonkey/iamthejarha
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Schooner3_44";
	refShip.All			= "Schooner2";
	refShip.SName			= "Schooner3_44";
	refShip.id			= refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 1080;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 114;
	refShip.MinCrew		 = 26;
	refShip.SpeedRate		= 16.6;
	refShip.TurnRate		= 46.25;
	refShip.Price		   = 35000;
	refShip.HP			  = 1800;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//----------------------iamthejarha--------------------------------------------------- 
// Weathered Fleut, Skin by Rafe Bligh       Code by Muddymonkey/iamthejarha
//------------------------------------------------------------------------- 
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FLEUT_ENGLAND]);
	refShip.Name			= "Fleut3_44";
	refShip.All			= "Fleut1";
	refShip.SName			= "Fleut3_44";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 2660;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 257;
	refShip.MinCrew		 = 57;
	refShip.SpeedRate		= 10.5;
	refShip.TurnRate		= 31.75;
	refShip.Price		   = 55000;
	refShip.HP			  = 3000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

//-------------------------------------------------------------------------
// 12 Gun Cutter by JMV575 8/23/04
//-------------------------------------------------------------------------
 
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "Sloop_Cutter1_18";
	refShip.All	  = "Sloop1";
	refShip.SName	 = "Cutter1_18";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class	 = 6; 
	refShip.Walk		 = "lugger1";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9; // KK
	refShip.MaxCaliber		= 9; // KK
	refShip.Weight 		 = Tonnes2CWT(100);
	refShip.Capacity		 = 325;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 36;
	refShip.MinCrew	  = 8;
	refShip.SpeedRate		= 15.9;
	refShip.TurnRate		 = 69;
	refShip.Price			= 20000;
	refShip.HP 		   = 400;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter	 = true; 

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true; 

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 10;	 refShip.InertiaBrakingY	 = 6;
	refShip.InertiaAccelerationZ	 = 4.0;  refShip.InertiaBrakingZ	 = 3.0;

	refShip.Height.Bombs.Y 		 = 1.0;  refShip.Height.Bombs.DY	 = 0.5;
	refShip.Height.Grapes.Y		 = 2.0;  refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y		 = 10.0; refShip.Height.Knippels.DY  = 8.0;
	refShip.Height.Balls.Y 		 = 1.0;  refShip.Height.Balls.DY	 = 0.5;
 

//-------------------------------------------------------------------------
// 16 Gun Brig by JMV575 8/24/04
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "Brig_16_Gun1_18";
// KK	refShip.All	  = "Brig1";
	refShip.SName	 = "Brig_16_Gun1_18";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 5;
	refShip.Walk		 = "galeoth1";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(182);
	refShip.Capacity		 = 900;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 116;
	refShip.MinCrew	  = 24;
	refShip.SpeedRate		= 12.7;
	refShip.TurnRate		 = 47;
	refShip.Price			= 22000;
	refShip.HP 		   = 1600;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter	 = true;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true; 

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "1Br"; // KK
 
 //-------------------------------------------------------------------------
 // 20 Gun Brig by JMV575 8/24/04
 //-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Brig_20_Gun1_18";
// KK	refShip.All	  = "Brig1";
	refShip.SName	 = "Brig_20_Gun1_18";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Walk		 = "schooner1";
	refShip.Class			= 4;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(190);
	refShip.Capacity		 = 1200;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 114;
	refShip.MinCrew	  = 24;
	refShip.SpeedRate		= 14;
	refShip.TurnRate		 = 42;
	refShip.Price			= 35000;
	refShip.HP 		   = 1710;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter = true;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true; 

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "2Br"; // KK
 
 //-------------------------------------------------------------------------
 // American Fast Schooner by JMV575 8/24/04
 //-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "SchoonerAm1_18";
	refShip.All	  = "Schooner2"; //changed NK 04-09-09 to use weathered schooner base
	refShip.SName	 = "SchoonerAm1_18";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 5;
	refShip.Walk		 = "schooner1";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight 		 = Tonnes2CWT(115);
	refShip.Capacity		 = 875;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 98;
	refShip.MinCrew	  = 12;
	refShip.SpeedRate		= 17.3;
	refShip.TurnRate		 = 47;
	refShip.Price			= 27000;
	refShip.HP 		   = 1020;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter = true;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0; // was 0.3
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "Fsc"; // NK -->
	refShip.No_NK_HFM = true;
	refShip.ClosestPoint = 0.15;
	refShip.BestPoint = 0.625;
	refShip.InertiaAccelerationZ = stf(refShip.InertiaAccelerationZ) / 4.0;
	refShip.InertiaBrakingZ = stf(refShip.InertiaBrakingZ) / 10.0;
	// NK <--
 
 //-------------------------------------------------------------------------
 // War Schooner by JMV575 8/25/04
 //-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "SchoonerWar1_18";
	refShip.All	  = "Schooner1";
	refShip.SName	 = "SchoonerWar1_18";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 4;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(200);
	refShip.Capacity		 = 980;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 134;
	refShip.MinCrew	  = 19;
	refShip.SpeedRate		 = 15.9;
	refShip.TurnRate		 = 46.55;
	refShip.Price			= 39000;
	refShip.HP 		   = 1900;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter = true;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;	 

	refShip.WaterLine = 0.0; // was 0.3
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 8;
	refShip.InertiaAccelerationZ	 = 5.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

// new from A&M

 //-------------------------------------------------------------------------
// Light Frigate - Corvette3 from A&M --Mod by NK to be light frig
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE2_FRANCE]);
	refShip.Name			= "CorvFrig1";
	refShip.id				= refShip.Name; // PS
	refShip.all			= "Corvette2";
	refShip.sname			= "CorvFrig"; // 04-09-12
	refShip.Class		   = 2;
	/* NK give it L24s refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;*/
	refShip.Cannon		= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(900); // 600
	refShip.Capacity		= 2200; //2000
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 360;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate		= 15.2;
	refShip.TurnRate		= 40;
	refShip.Price		   = 140000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

 //-------------------------------------------------------------------------
 // Shnyava1
 //-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG_FRANCE]);
	refShip.Name			 = "Shnyava1";
	refShip.id 			 = refShip.Name; // PS
// KK	refShip.all			 = "Brig1";
	refShip.Walk		 = "schooner1";
	refShip.sname			= "shnyava";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 4;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(200);
	refShip.Capacity		 = 1200;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 120;
	refShip.MinCrew	  = 24;
	refShip.SpeedRate		 = 14;
	refShip.TurnRate		 = 45;
	refShip.Price			= 35000;
	refShip.HP 		   = 1800;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.ClosestPoint = 0.3;
	refShip.BestPoint = 0.8;
	refShip.RigType = "Shn";

 //-------------------------------------------------------------------------
 // Shnyava2
 //-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG_FRANCE]);
	refShip.Name			 = "Shnyava2";
	refShip.id 			 = refShip.Name; // PS
// KK	refShip.all			 = "Brig2";
	refShip.Walk		 = "schooner2";
	refShip.sname			= "shnyava";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 4;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(200);
	refShip.Capacity		 = 1200;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 120;
	refShip.MinCrew	  = 24;
	refShip.SpeedRate		 = 14;
	refShip.TurnRate		 = 45;
	refShip.Price			= 35000;
	refShip.HP 		   = 1800;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.ClosestPoint = 0.3;
	refShip.BestPoint = 0.8;
	refShip.RigType = "Shn";

//-------------------------------------------------------------------------
// Brigantina1
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG_FRANCE]);
	refShip.Name			= "Brigantina1";
	refShip.id				= refShip.Name; // PS
// KK	refShip.all			 = "Brig1";
	refShip.sname			= "brigantina";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity = 22; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 160;
	refShip.MinCrew		 = 32;
	refShip.SpeedRate	   = 14.0;
	refShip.TurnRate		= 40;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;
	//refShip.No_NK_HFM = true; KNB set true, NK set back to false because I updated the func below. 05-04-10

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12.0;	refShip.InertiaBrakingY		= 9.0;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	// KNB add NKHFM rig bloc
	refShip.ClosestPoint = 0.25;
	refShip.BestPoint = 0.7;
	refShip.RigType = "Btn";
	//these are done below:
	//refShip.InertiaAccelerationZ = stf(refShip.InertiaAccelerationZ) / 4.0;
	//refShip.InertiaBrakingZ = stf(refShip.InertiaBrakingZ) / 10.0;

//-------------------------------------------------------------------------
//      War Galleon (Galeonw) by Petros
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEON_FRANCE]);
	refShip.Name			= "Galeonw";
	refShip.Nation  	= SPAIN;
	refShip.all = "Galeon1";
	refShip.SName = "Galeonw";
	refShip.id				= "Galeonw"; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 40;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate		= 13.0;
	refShip.TurnRate		= 30;
	refShip.Price		   = 120000;
	refShip.HP			  = 4500;
	refShip.SP			  = 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_petros_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_petros_plain.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy		= true;
	refShip.Type.Trade 	= false;
	refShip.Type.War 	= true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      War Galleon (Galeon4)  by Petros
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEON_FRANCE]);
	refShip.Name			= "Galeon4";
	refShip.Nation  	= SPAIN;
	refShip.all = "Galeon2";
	refShip.SName = "Galeon4";
	refShip.id				= "Galeon4"; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon		  = CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber	  = 18;
	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity 	= 40;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate		= 13.0;
	refShip.TurnRate		= 30;
	refShip.Price		   = 120000;
	refShip.HP			  = 4500;
	refShip.SP			  = 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_petros_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_petros_plain.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.CanEncounter		= true;
	refShip.CanBuy			= true;
	refShip.Type.Trade		= false;
	refShip.Type.War		= true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Ship of the Line (Manow50_gub) by Petros
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Manow50_gub";
	refShip.SName			= "Manow50_gub";
	refShip.id				= refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 1;
	refShip.Cannon		  = CANNON_TYPE_LONG_LBS32;		// LDH was CANNON_TYPE_CANNON_LBS32 12Sep06
	refShip.MaxCaliber	  = 32;
	refShip.Weight			= Tonnes2CWT(3500);
	refShip.Capacity		= 5400;
	refShip.CannonsQuantity = 100;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 8;
	// NK <--
	refShip.MaxCrew		 = 950;
	refShip.MinCrew		 = 210;
	refShip.SpeedRate		= 11.65;
	refShip.TurnRate		= 21;
	refShip.Price		   = 400000;
	refShip.HP			  = 15000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.CanEncounter	= true;
	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Light Frigate 2 (CorvFrig2_50) by NK/Petros
//-------------------------------------------------------------------------

	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE2_FRANCE]);
	refShip.Name			= "CorvFrig2_50";
	refShip.id				= refShip.Name; // PS
	refShip.sname			= "CorvFrig2_50"; // 04-09-12
	refShip.Class		   = 2;
	/* NK give it L24s refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;*/
	refShip.Cannon		= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(900); // 600
	refShip.Capacity		= 2200; //2000
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 360;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate		= 15.2;
	refShip.TurnRate		= 40;
	refShip.Price		   = 140000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Pirate Corvette (Corvette6_50) by Petros
//-------------------------------------------------------------------------

	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE2_FRANCE]);
	refShip.Name			= "Corvette6_50";
	refShip.Nation			= PIRATE;
	
	refShip.id			= refShip.Name; // PS
	refShip.all			= "Corvette2";
	refShip.sname			= "Corvette6_50";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1800;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 300;		// LDH was 200 12Sep06
	refShip.MinCrew		 = 60; 		// LDH was 40 
	refShip.SpeedRate		= 15;
	refShip.TurnRate		= 40;
	refShip.Price		   = 125000;
	refShip.HP			  = 5000;
	refShip.SP			  = 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_Petros_black_red.tga";
	refShip.EmblemedSails.nationFileName = "sail_Petros_black_red.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.CanEncounter	= false;
	refShip.CanBuy = false;	

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Ketch  //Petros
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SLOOP_FRANCE]);
	refShip.Name			= "Ketch";
	refShip.all 			= "Sloop1";
	refShip.SName 			= "Ketch";
	refShip.id			= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   	= 5;
	refShip.Walk			= "Ketch";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(170);
	refShip.Capacity		= 800;
	refShip.CannonsQuantity 	= 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 20;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		= 55;
	refShip.Price		   = 25000;
	refShip.HP			  = 1200;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.CanEncounter		= true;
	refShip.CanBuy			= true;
	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.ClosestPoint = 0.15;
	refShip.BestPoint = 0.625;
	refShip.RigType = sDet;
	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

//-------------------------------------------------------------------------
//      Royal Galleon (Galeon3_50)  by Petros
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEON_FRANCE]);
	refShip.Name			= "Galeon3_50";
	refShip.Nation  	= SPAIN;
	refShip.all 			= "Galeon1";
	refShip.SName 			= "Galeon3_50";
	refShip.id				= "Galeon3_50"; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon		  = CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber	  = 12;
	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 40;
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate		= 11.0;
	refShip.TurnRate		= 22;
	refShip.Price		   = 95000;
	refShip.HP			  = 5000;
	refShip.SP			  = 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_petros_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_petros_plain.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.CanEncounter		= true;
	refShip.CanBuy			= true;
	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Light Caravel (Caravel3_50) by Petros	
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CARAVEL_FRANCE]);
	refShip.Name			= "Caravel3_50";
	refShip.Nation  	= PORTUGAL;
	refShip.all 			= "Caravel1";
	refShip.SName 			= "Caravel3_50";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity 	= 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 200;
	refShip.MinCrew		 = 40;
	refShip.SpeedRate		= 10.0;
	refShip.TurnRate		= 30;
	refShip.Price		   = 45000;
	refShip.HP			  = 2000;
	refShip.SP			  = 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_petros_blue_white.tga";
	refShip.EmblemedSails.nationFileName = "sail_petros_blue_white.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy		= true;
	refShip.Type.Trade 		= true;
	refShip.Type.War		= false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX	= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY	= 4;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ	= 3.0;

//------------------------------------------------------------------------------------ 
//      LuggerVML - From "Sea Legend is Back" Add-on - Stats by Jack Davidson
//------------------------------------------------------------------------------------ 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name			= "LuggerVML";
	refShip.All				= "Lugger2";
	refShip.SName			= "LuggerVML";
	refShip.id				= refShip.Name; // PS
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 6;
	refShip.Walk			= "LuggerVML";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(130);
	refShip.Capacity		= 510;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew			= 56;
	refShip.MinCrew			= 12;
	refShip.SpeedRate		= 15.2;
	refShip.TurnRate		= 51;
	refShip.Price			= 22000;
	refShip.HP				= 525;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

//-------------------------------------------------------------------------
//      Merchantman (Pinnace3_50) by Petros
//-------------------------------------------------------------------------

// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_PINNACE_FRANCE]);
	refShip.Name			= "Pinnace3_50";
	refShip.id			= refShip.Name; // PS
	refShip.all			= "Pinnace2";
	refShip.sname			= "Pinnace3_50"; // 04-09-12
	refShip.Class		  	= 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(550);
	refShip.Capacity		= 3200;
	refShip.CannonsQuantity 	= 30; // was 24
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6;
	// NK <--
	refShip.MaxCrew			= 300;
	refShip.MinCrew			= 60;
	refShip.SpeedRate		= 12.5;
	refShip.TurnRate		= 30;
	refShip.Price		   = 70000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.WaterLine		= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 1.1;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Privateer (SloopofWar_50) by Petros / Captain Hawk
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         		= "SloopofWar_50";
	refShip.SName			= "SloopofWar_50";
	refShip.id            		= refShip.Name;
	refShip.Nation			= PIRATE;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   	= 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity 	= 22;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew			= 160;
	refShip.MinCrew			= 35;
	refShip.SpeedRate		= 14.7;
	refShip.TurnRate		= 42;
	refShip.Price		   	= 85000;
	refShip.HP			= 2500;
	refShip.SP			= 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade		= false;
	refShip.Type.War		= true;

	refShip.CanEncounter		= true;
	refShip.CanBuy			= false;	

	refShip.WaterLine		= 0.1;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 0.4;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;	refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Light Galleon (Fleut50) by Petros
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FLEUT2_FRANCE]);
	refShip.Name			= "Fleut50";
	refShip.all 			= "Galeon1";
	refShip.SName 			= "Fleut50";	

	refShip.id			= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 3;
	refShip.Walk			= "Fleut2";
	refShip.Cannon			= CANNON_TYPE_Long_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 2800;
	refShip.CannonsQuantity		= 30;

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew			= 280;
	refShip.MinCrew			= 54;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 36;
	refShip.Price			= 75000;
	refShip.HP			= 3500;
	refShip.SP			= 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_petros_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_petros_plain.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.CanEncounter		= true;
	refShip.CanBuy			= true;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.ClosestPoint		= 0.325; // same as Pinnace "fast galleon"
	refShip.BestPoint		= 0.85;  // same as Pinnace
	refShip.RigType			= sDet;

	refShip.WaterLine		= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 0.9;
	refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Rum Runner (Schooner4_50)		By Petros
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Schooner4_50";
	refShip.All			= "Schooner2";
	refShip.SName			= "Schooner4_50";
	refShip.id			= refShip.Name; // PS
	refShip.Nation			= Portugal;
	refShip.Class			= 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 1140;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 120;
	refShip.MinCrew		 = 24;
	refShip.SpeedRate		= 16.3;
	refShip.TurnRate		= 45.5;
	refShip.Price		   = 35000;
	refShip.HP			  = 1800;
	refShip.SP			  = 100;
// Petros -->
	refShip.EmblemedSails.normalTex = "sail_petros_blue_white.tga";
	refShip.EmblemedSails.nationFileName = "sail_petros_blue_white.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;
// <-- Petros

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//-------------------------------------------------------------------------
// Dutch Fleut (Fleut4_50) by Petros
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FLEUT2_FRANCE]);
	refShip.Name			= "Fleut4_50";
	refShip.Nation  	= HOLLAND;
	refShip.all 			= "Fleut2";
	refShip.SName 			= "Fleut4_50";	

	refShip.id			= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Nation			= Holland;
	refShip.Class			= 4;
	refShip.Cannon			= CANNON_TYPE_Long_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 3200;
	refShip.CannonsQuantity		= 30;

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew			= 270;
	refShip.MinCrew			= 54;
	refShip.SpeedRate		= 10.0;
	refShip.TurnRate		= 30;
	refShip.Price			= 65000;
	refShip.HP			= 3000;
	refShip.SP			= 100;
	// KK refShip.AbordageLocation	= "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.CanEncounter		= true;
	refShip.CanBuy			= true;
	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.WaterLine		= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 0.9;
	refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Fast Barque (Barque3_50) by Petros
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Barque3_50";
	refShip.All				= "Yacht2";
	refShip.SName			= "Barque3_50";
	refShip.id				= refShip.Name; // PS
	refShip.Nation			= PIRATE;
	refShip.Class			= 5;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(250);
	refShip.Capacity		= 1200;
	refShip.CannonsQuantity 	= 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 	= 90;
	refShip.MinCrew		 	= 18;
	refShip.SpeedRate		= 14.5;
	refShip.TurnRate		= 45;
	refShip.Price		   	= 27000;
	refShip.HP			 	= 1200;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade		= true;
	refShip.Type.War		= true;

	refShip.CanEncounter	= true;
	refShip.CanBuy			= true;

	refShip.ClosestPoint	= 0.225; 
	refShip.BestPoint		= 0.625; 
	refShip.RigType			= sDet;

	refShip.WaterLine = -0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;

	refShip.EmblemedSails.normalTex = "sail_Petros_black_red.tga";
	refShip.EmblemedSails.nationFileName = "sail_Petros_black_red.tga"; 

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

//-------------------------------------------------------------------------
// HMS Surprise by Inzane
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         			= "Surprise";
	refShip.SName           		= "Surprise";
	refShip.id            			= refShip.Name;
	refShip.Nation				= ENGLAND;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class				= 2;
	refShip.Cannon				= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber			= 12;
	refShip.Weight				= Tonnes2CWT(1000);
	refShip.Capacity			= 2500;
	refShip.CannonsQuantity			= 42; // KevAtl Fix Cannon Quantity - gm model has 42 cannons
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty	= 2;
	refShip.Cannons.Borts.cannonb.qty	= 2;
	// NK <--
	refShip.MaxCrew				= 300;		// LDH was 240 12Sep06
	refShip.MinCrew				= 80;
	refShip.SpeedRate			= 14.8;
	refShip.TurnRate			= 34;
	refShip.Price				= 150000;
	refShip.HP				= 6000;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation		= "BOARDING_FRIGATE";
	refShip.Walk = "Surprise";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y	= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      34 Gun Fleut of War (FleutOfWar34Gun) by Captain Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FLEUT2_FRANCE]);
	refShip.Name			= "FleutOfWar34G";
	refShip.Sname = "FleutOfWar34G";
	refShip.id				= refShip.Name; // PS
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12; // KK
	refShip.MaxCaliber		= 12; // KK
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 2800;
	refShip.CannonsQuantity = 34;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 270;
	refShip.MinCrew		 = 54;
	refShip.SpeedRate		= 11;
	refShip.TurnRate		= 32;
	refShip.Price		   = 55000;
	refShip.HP			  = 3000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

//-------------------------------------------------------------------------
// Gaffboom Galeoth by Captain Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALEOTH_FRANCE]);
	refShip.Name			= "GAFFBOOMGALEOTH";
	refShip.all				 = "Galeoth1";
	refShip.SName			 = "GaffBoomGaleoth";
	refShip.BigPicTex		= 1; // PS
	refShip.BigPicTexName	= "SHIPS1"; // PS
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 5;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(150);
	refShip.Capacity		= 1000;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 90;
	refShip.MinCrew		 = 18;
	refShip.SpeedRate		= 15;
	refShip.TurnRate		= 50;
	refShip.Price		   = 30000;
	refShip.HP			  = 1000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";
	refShip.Walk = "GAFFBOOMGALEOTH";

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
	refShip.RigType = "Sch";
	refShip.WaterLine = -0.5;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 9;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

//-------------------------------------------------------------------------
//      40 Gun Pinnace of War (Pinnaceofwar40g) by Captain Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_PINNACE2_FRANCE]);
	refShip.Name			= "Pinnaceofwar40g";
	refShip.sname			= "Pinnaceofwar40g";	
	refShip.id				= refShip.Name; // PS
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(550);
	refShip.Capacity		= 2600;
	refShip.CannonsQuantity = 40;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6;
	// NK <--
	refShip.MaxCrew		 = 300;
	refShip.MinCrew		 = 60;
	refShip.SpeedRate		= 12.5;
	refShip.TurnRate		= 30;
	refShip.Price		   = 100000;
	refShip.HP			  = 4500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";
	refShip.RigType = "Fri";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.1;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Schooner Xebec (SchoonerXebec) by Captain Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_XEBEC_FRANCE]);
	refShip.Name			= "SchoonerXebec";
	refShip.sname			= "SchoonerXebec";
	refShip.id				= refShip.Name; // PS
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 4;
	refShip.Cannon			= CANNON_TYPE_CARRONADE_LBS18;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(200);
	refShip.Capacity		= 900;
	refShip.CannonsQuantity = 24;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 20;
	refShip.SpeedRate	   = 14;
	refShip.TurnRate		= 55;
	refShip.Price		   = 35000;
	refShip.HP			  = 1500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_XEBEC";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 15;	refShip.InertiaBrakingY		= 10;
	refShip.InertiaAccelerationZ	= 9.0;	refShip.InertiaBrakingZ		= 2;

//-------------------------------------------------------------------------
//      Heavy Warship by Captain Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[n]);
	refShip.Name			= "HeavyWarship";	
	refShip.id			= refShip.Name; // PS
	refShip.sname			= "HeavyWarship";	
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(3000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 74; 
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 750;	// LDH was 700 12Sep06
	refShip.MinCrew		 = 150;
	refShip.SpeedRate	   = 12.8;
	refShip.TurnRate		= 25.8;
	refShip.Price		   = 350000; // NK - 250000
	refShip.HP			  = 12000; // NK - 20000
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";
	refShip.RigType = "Fri";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.4;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	// NK -->
	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	// NK <--

//-------------------------------------------------------------------------
//      Waller Pinnace (WallerPinnace) by Captain Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_PINNACE2_FRANCE]);
	refShip.Name			= "WallerPinnace"; // KK
	refShip.sname			= "WallerPinnace"; // KK
	refShip.id				= refShip.Name; // PS
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(550);
	refShip.Capacity		= 3200;
	refShip.CannonsQuantity = 54;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6;
	// NK <--
	refShip.MaxCrew		 = 300;
	refShip.MinCrew		 = 60;
	refShip.SpeedRate		= 12.5;
	refShip.TurnRate		= 28;
	refShip.Price		   = 100000;
	refShip.HP			  = 4000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";
	refShip.RigType = "Fri";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
	// refShip.CanEncounter	= false;
	refShip.WaterLine = 0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.1;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//------------------------------------------------------------------------- 
// Heavy Frigate by Captain Spectre
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "heavyfrigate";
	refShip.SName            = "heavyfrigate";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2250;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 380;
	refShip.MinCrew		 = 84;
	refShip.SpeedRate	   = 13.7;
	refShip.TurnRate		= 32;
	refShip.Price		   = 150000;
	refShip.HP			  = 6000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      War Pinnace by Thomas the Terror
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_PINNACE2_FRANCE]);
	refShip.Name			= "War_Pinnace";
	refShip.All				= "Pinnace2";
	refShip.sname			= "War_Pinnace";	
	refShip.id				= refShip.Name; // PS
	refShip.Nation  	        = ENGLAND;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18; // KK
	refShip.MaxCaliber		= 18; // KK
	refShip.Weight			= Tonnes2CWT(550);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity = 54;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6;
	// NK <--
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate		= 14.5;
	refShip.TurnRate		= 34;
	refShip.Price		   = 100000;
	refShip.HP			  = 5000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.RigType = "Fri";
	refShip.Type.Trade = false;
	refShip.Type.War = true;
	// refShip.CanEncounter	= false;
	refShip.WaterLine = 0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.1;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Royal Navy Ship of the Line 74 gun skinned by Seb coded by Thomas the Terror
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[n]);
	refShip.Name			= "RN_Third_Rate";
	refShip.id				= refShip.Name; // PS
	refShip.Nation			= ENGLAND;
	refShip.all				= "Warship1"; // PB
	refShip.sname			= "RN_Third_Rate";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KK: 19 on each bort+4 stern+2 bow
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 580;
	refShip.MinCrew 		= 116;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 26;
	refShip.Price			= 250000;
	refShip.HP				= 9500;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Royal Navy Lineship skinned by Seb coded in by Thomas the Terror
//-------------------------------------------------------------------------
	//makeref(refShip,ShipsTypes[SHIP_LINESHIP_FRANCE]);
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_PIRATE+6]);
	refShip.Name			= "RN_Lineship";
	refShip.id				= refShip.Name; // PS
	refShip.Nation			= ENGLAND;
	refShip.all				= "Lineship1"; // PB
	refShip.sname			= "RN_Lineship";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1700);
	refShip.Capacity		= 3000;
	refShip.CannonsQuantity = 40; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 500;
	refShip.MinCrew 		= 100;
	refShip.SpeedRate		= 12.5;
	refShip.TurnRate		= 28;
	refShip.Price			= 225000;
	refShip.HP				= 8100;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Royal Navy Fourth Rate Ship skinned by Seb, modified by Thomas the Terror
//-------------------------------------------------------------------------
	//makeref(refShip,ShipsTypes[SHIP_WARSHIP_FRANCE]);
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_PIRATE+11]);
	refShip.Name			= "RN_Fourth_Rate";
	refShip.id				= refShip.Name; // PS
	refShip.Nation			= ENGLAND;
	refShip.all				= "Warship1"; // PB
	refShip.sname			= "RN_Fourth_Rate";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KK: 19 on each bort+4 stern+2 bow
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 580;
	refShip.MinCrew 		= 116;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 26;
	refShip.Price			= 250000;
	refShip.HP				= 9500;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_FRIGATE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//--------------------------------------------------------------------
// Royal Navy Heavy Frigate by Thomas the Terror
//--------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "RN_Heavy_Frigate";
	refShip.Nation  	        = ENGLAND;
	refShip.All            = "Frigate2";
	refShip.SName            = "RN_Heavy_Frigate";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2250;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 380;
	refShip.MinCrew		 = 84;
	refShip.SpeedRate	   = 13.7;
	refShip.TurnRate		= 33.5;
	refShip.Price		   = 150000;
	refShip.HP			  = 6500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//------------------------------------------------------------------------- 
// Royal Navy Light Frigate by Thomas the Terror
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "RN_Light_Frigate";
	refShip.Nation  	        = ENGLAND;
	refShip.All            = "Corvette2";
	refShip.SName            = "RN_Light_Frigate";
	refShip.id            = refShip.Name;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1800;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 190;
	refShip.MinCrew		 = 42;
	refShip.SpeedRate		= 14.8;
	refShip.TurnRate		= 37.25;
	refShip.Price		   = 120000;
	refShip.HP			  = 4500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Royal Navy 16  gun Brig by Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "RN_Brig_16gun";
	refShip.Nation  	= ENGLAND;
	refShip.All	  = "Brig_16_Gun1_18";
	refShip.SName	 = "RN_Brig_16gun";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 5;
	refShip.Walk		 = "galeoth1";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(182);
	refShip.Capacity		 = 900;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 120;
	refShip.MinCrew	  = 25;
	refShip.SpeedRate		= 15.7;
	refShip.TurnRate		 = 47;
	refShip.Price			= 22000;
	refShip.HP 		   = 1600;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 0; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter	 = true; 
	refShip.Type.Trade = false;
	refShip.Type.War = true; 

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "1Br"; // KK

//-------------------------------------------------------------------------
//      Royal Navy Sloop of War by Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         		= "RN_Sloop_of_War";
	refShip.Nation  	= ENGLAND;
	refShip.All            		= "Brig2";
	refShip.SName			= "RN_Sloop_of_War";
	refShip.id            		= refShip.Name;
	refShip.Nation			= ENGLAND;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   	= 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity 	= 22;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew			= 160;
	refShip.MinCrew			= 35;
	refShip.SpeedRate		= 14.9;
	refShip.TurnRate		= 43;
	refShip.Price		   	= 85000;
	refShip.HP			= 2500;
	refShip.SP			= 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade		= false;
	refShip.Type.War		= true;

	refShip.CanEncounter		= true;
	refShip.CanBuy			= false;	

	refShip.WaterLine		= 0.1;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 0.4;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;	refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	
//-------------------------------------------------------------------------
//	Colonial Fast Schooner by Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "SchoonerAm1_47";
	refShip.All	  = "Schooner2"; //changed NK 04-09-09 to use weathered schooner base
	refShip.SName	 = "SchoonerAm1_47";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 5;
	refShip.Walk		 = "schooner1";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight 		 = Tonnes2CWT(115);
	refShip.Capacity		 = 875;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 98;
	refShip.MinCrew	  = 12;
	refShip.SpeedRate		= 16.4;
	refShip.TurnRate		 = 46.7;
	refShip.Price			= 27000;
	refShip.HP 		   = 1100;
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter	 = true; 
	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0; // was 0.3
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "Fsc"; // NK -->
	refShip.No_NK_HFM = true;
	refShip.ClosestPoint = 0.15;
	refShip.BestPoint = 0.625;
	refShip.InertiaAccelerationZ = stf(refShip.InertiaAccelerationZ) / 4.0;
	refShip.InertiaBrakingZ = stf(refShip.InertiaBrakingZ) / 10.0;
	// NK <--

//-------------------------------------------------------------------------
//	Colonial Sloop of War Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         		= "Col_SloopofWar";
	refShip.All            		= "Brig2";
	refShip.SName			= "Col_SloopofWar";
	refShip.id            		= refShip.Name;
	refShip.Nation			= ENGLAND;
	//curid = refShip.id; ShipLookupTable.id.(curid) = n-1;
	refShip.Class		   	= 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity 	= 22;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew			= 160;
	refShip.MinCrew			= 35;
	refShip.SpeedRate		= 15.1;
	refShip.TurnRate		= 43;
	refShip.Price		   	= 85000;
	refShip.HP			= 2500;
	refShip.SP			= 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade		= false;
	refShip.Type.War		= true;

	refShip.CanEncounter		= true;
	refShip.CanBuy			= false;	

	refShip.WaterLine		= 0.1;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 0.4;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;	refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// War Tartane from AOP added by MAXIMUS
//-------------------------------------------------------------------------
	
	makeref(refShip,ShipsTypes[n]);
	n++;

	refShip.Name			= "Tartane3";
	refShip.all				= "Tartane1";
	refShip.sname			= "Tartane3";
	refShip.id			    = refShip.Name;
	refShip.Class			= 7;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(100);
	refShip.Capacity		= 160;
	refShip.CannonsQuantity = 8;
	refShip.Cannons.Borts.cannonf.qty = 0;
	refShip.Cannons.Borts.cannonb.qty = 0;
	refShip.MaxCrew			= 30;
	refShip.MinCrew			= 8;
	refShip.SpeedRate		= 14.0;
	refShip.TurnRate		= 60;
	refShip.Price			= 2500;

	refShip.HP				= 250;
	refShip.SP				= 100;
	 
	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 0; // KK
	refShip.Cabin = "Cabin_none"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	// KK refShip.AbordageLocation = "BOARDING_TARTANE";

	// LDH changed 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	if(USE_REAL_CANNONS)
	{
		refShip.Cannons.Borts.cannonf.FireZone	= Degree2Radian(10.0);
		refShip.Cannons.Borts.cannonf.FireDir	 = Degree2Radian(0.0);
		refShip.Cannons.Borts.cannonf.FireAngMin	= Degree2Radian(-2.5) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonf.FireAngMax	= Degree2Radian(5.0) * FIRE_ANGLE_SCALAR_H;

		refShip.Cannons.Borts.cannonr.FireZone	= Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonr.FireDir	 = Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonr.FireAngMin	= Degree2Radian(-5.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonr.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;

		refShip.Cannons.Borts.cannonb.FireZone	= Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonb.FireDir	 = Degree2Radian(180.0);
		refShip.Cannons.Borts.cannonb.FireAngMin	= Degree2Radian(-5.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonb.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;

		refShip.Cannons.Borts.cannonl.FireZone	= Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonl.FireDir	 = Degree2Radian(270.0);
		refShip.Cannons.Borts.cannonl.FireAngMin	= Degree2Radian(-5.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonl.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	}

//-------------------------------------------------------------------------
// Battleship3 from AOP added by MAXIMUS
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;

	refShip.Name			 = "Battleship3";
	refShip.SName			 = "Battleship3";
	refShip.id				 = refShip.Name;
	refShip.Class		     = 1;
	refShip.Walk			 = ""; // PB
	refShip.Cannon			 = CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	     = 32;
	refShip.Weight			 = Tonnes2CWT(3000);
	refShip.Capacity		 = 6000;
	refShip.CannonsQuantity  = 80; // KK
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 6; // KK
	refShip.MaxCrew			 = 820;
	refShip.MinCrew			 = 160;
	refShip.SpeedRate		 = 11;
	refShip.TurnRate		 = 24.8;
	refShip.Price			 = 450000;
	refShip.HP				 = 17000;
	refShip.SP				 = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;

	refShip.InertiaAccelerationX	= 0.3;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Manowar3 from AOP added by MAXIMUS
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Manowar3";
	refShip.id				= refShip.Name;
	refShip.Class			= 1;
	refShip.Walk			= "Manowar3"; // SeaNorris
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber		= 32;
	refShip.Weight			= Tonnes2CWT(3300);
	refShip.Capacity		= 6100; // KK
	refShip.CannonsQuantity = 102; // KK
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 8;
	// NK <--
	refShip.MaxCrew		 = 1000;
	refShip.MinCrew		 = 200;
	refShip.SpeedRate		= 11; // KK
	refShip.TurnRate		= 20; // KK
	refShip.Price		   = 405000; // KK
	refShip.HP			  = 16000; // KK
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Bermsloop163 StingRay By: Captain Augast, July 2006
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SLOOP_FRANCE]);
	refShip.Name		= "bermsloop163";
	refShip.all		= "Sloop1";
	refShip.SName		= "bermsloop163";
	//refShip.BigPicTex	= 1; // PS
	//refShip.BigPicTexName	= "SHIPS1"; // PS
	refShip.id		= refShip.Name; // PS
	refShip.Class		= 5;
	refShip.Walk		= "bermsloop163";
	refShip.Cannon		= CANNON_TYPE_LONG_LBS9;	// LDH was CANNON_TYPE_CANNON_LBS32 12Sep06
	refShip.MaxCaliber	= 9;
	refShip.Weight		= Tonnes2CWT(390);
	refShip.Capacity	= 850;
	refShip.CannonsQuantity	= 10;

	refShip.Cannons.Borts.cannonf.qty = 1;
	refShip.Cannons.Borts.cannonb.qty = 1;

	refShip.MaxCrew		= 80;
	refShip.MinCrew		= 9;
	refShip.SpeedRate	= 16.0;
	refShip.TurnRate	= 43.0;
	refShip.Price		= 53000;
	refShip.HP		= 1300;
	refShip.SP		= 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";
	refShip.RigType		 = "Slo";
	refship.WaterLine	 = 0.0;
	refship.SpeedDependWeight  = 0.2;
	refship.SubSeaDependWeight = 0.3;
	refship.TurnDependWeight   = 0.2;

	refShip.CanEncounter	= true;
	refShip.CanBuy		= true;

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade	= false;
	refShip.Type.War	= true;

	refship.InertiaAccelerationX	= 1.0;	refship.InertiaBrakingX		= 2.0;
	refship.InertiaAccelerationY	= 15;	refship.InertiaBrakingY		= 8;
	refship.InertiaAccelerationZ	= 6.0;	refship.InertiaBrakingZ		= 3.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//  BERMSLOOP263 SuperRay By: Captain Augast, July 2006
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_SLOOP_FRANCE]);
	refShip.Name		= "bermsloop263";
	refShip.all		= "Sloop1";
	refShip.SName		= "bermsloop263";
	//refShip.BigPicTex	= 1; // PS
	//refShip.BigPicTexName	= "SHIPS1"; // PS
	refShip.id		= refShip.Name; // PS 
	refShip.Class		 = 5; 
	refShip.Walk            = "bermsloop263";
	refShip.Cannon          = CANNON_TYPE_LONG_LBS12;	// LDH was CANNON_TYPE_CANNON_LBS32 12Sep06 // KK
	refShip.MaxCaliber	= 12; // KK
	refShip.Weight		= Tonnes2CWT(450);
	refShip.Capacity        = 2100;
	refShip.CannonsQuantity = 26;

	// KevAtl 08-26-2007 - gm model has 3 cannon locators front and rear
	// fires 3 shots from either front or rear. gattling gun effect?
	refShip.Cannons.Borts.cannonf.qty = 3;
	refShip.Cannons.Borts.cannonb.qty = 3;

	refShip.MaxCrew         = 110; // KK
	refShip.MinCrew         = 6;
	refShip.SpeedRate       = 19.0;
	refShip.TurnRate        = 43.0; // KK
	refShip.Price           = 95000;
	refShip.HP              = 1500; // KK
	refShip.SP              = 100;
	// KK refShip.AbordageLocation = "BOARDING_SLOOP";
	refShip.RigType		 = "Slo";
	refship.WaterLine	 = 0.0;
	refship.SpeedDependWeight  = 0.2;
	refship.SubSeaDependWeight = 0.2;
	refship.TurnDependWeight   = 0.2;

	refShip.CanEncounter	= false;	// PB: Unavailable for the moment
	refShip.CanBuy		= false;	// PB: Unavailable for the moment

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade	= false;
	refShip.Type.War	= true;

	refship.InertiaAccelerationX	= 3.0;	refship.InertiaBrakingX		= 2.0;
	refship.InertiaAccelerationY	= 12;	refship.InertiaBrakingY		= 5;
	refship.InertiaAccelerationZ	= 5.0;	refship.InertiaBrakingZ		= 3.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Post Office Packet Brig Cap Hawk
//-------------------------------------------------------------------------

	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG2_FRANCE]);
	refShip.Name			= "Packetbr";
	refShip.All = "Brig2";
	refShip.sname			= "Packetbr";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Walk = "Packetbr";
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_CARRONADE_LBS18;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity = 22; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 160;
	refShip.MinCrew		 = 32;
	refShip.SpeedRate	   = 14.0;
	refShip.TurnRate		= 40;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_PINNACE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = true;
	refShip.RigType = "Brig";
	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//  Cutter by Captain Hawk
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Cutter1";
	refShip.All	 			= "Sloop1";
	refShip.SName	 = "Cutter1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 6;
	refShip.Walk			= "Cutter1";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight			= Tonnes2CWT(100);
	refShip.Capacity		= 325;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 36;
	refShip.MinCrew	  = 8;
	refShip.SpeedRate		= 16.4;//Falcon can make 0,5 better than "Light".
	refShip.TurnRate	     = 70;// "Light" = Famous pirate Cutter of 12 Cannon.
	refShip.Price			= 15000;
	refShip.HP 		   = 350;// "old ship"
	refShip.SP 		   = 100;
	// KK refShip.AbordageLocation = "BOARDING_BARQUE";
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter	 = true; 

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.RigType		 = "Slo";
	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 0.5;
	refShip.InertiaAccelerationY	 = 10;	 refShip.InertiaBrakingY	 = 6;
	refShip.InertiaAccelerationZ	 = 4.0;  refShip.InertiaBrakingZ	 = 3.0;

	refShip.Height.Bombs.Y 		 = 1.0;  refShip.Height.Bombs.DY	 = 0.5;
	refShip.Height.Grapes.Y		 = 2.0;  refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y		 = 10.0; refShip.Height.Knippels.DY  = 8.0;
	refShip.Height.Balls.Y 		 = 1.0;  refShip.Height.Balls.DY	 = 0.5;

//-------------------------------------------------------------------------
// "West Indiaman"  West India Company Ship by Cap Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_FRANCE]);
	refShip.Name			= "Indiaman1";
	refShip.Nation  	= ENGLAND;
	refShip.All = "Corvette1";
	refShip.SName	 = "Indiaman1";
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 50;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.Walk = "Indiaman1";
	refShip.MaxCrew		 = 400;
	refShip.MinCrew		 = 100;
	refShip.SpeedRate		= 13;
	refShip.TurnRate		= 35;
	refShip.Price		   = 220000;
	refShip.HP			  = 5000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
	refShip.Rigtype = "Corvette1";
	refShip.WaterLine = -0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Weathered Fast Merchantman ex Navy Corvette by Cap Hawk
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_PIRATE]);
	refShip.Name			= "FastMerchantman";
	refShip.All				= "Corvette1"; // PS
	refShip.SName	 = "FastMerchantman";
	//PRS3 - refShip.Nation			= ENGLAND;
	refShip.id				= refShip.Name;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class		   = 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 2500;
	refShip.CannonsQuantity = 14;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 100;
	refShip.MinCrew		 = 30;
	refShip.SpeedRate		= 15.5; 
	refShip.TurnRate		= 45;
	refShip.Price		   = 50000;
	refShip.HP			  = 2000;
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";
	refShip.rigtype = "Cor";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;
	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 1.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

	//-------------------------------------------------------------------------
	// Black Pearl by Kazeite
	//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name				= "BlackPearl";
	refShip.BigPicTex			= 1;
	refShip.BigPicTexName		= "SHIPS1";
	refShip.SName				= "BlackPearl";
	refShip.id					= refShip.Name;
	refShip.Nation				= PIRATE;
	refShip.unique				= true;
	refShip.Class				= 3;
	refShip.Walk				= "BlackPearl";
	refShip.Cannon				= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber			= 24;
	refShip.Weight				= Tonnes2CWT(1100);
	refShip.Capacity			= 2200;
	refShip.CannonsQuantity		= 36;
	refShip.Cannons.Borts.cannonf.qty	= 2;
	refShip.Cannons.Borts.cannonb.qty	= 2;
	refShip.MaxCrew				= 300;
	refShip.MinCrew				= 60;
	refShip.SpeedRate			= 16.8;
	refShip.TurnRate			= 36.5;
	refShip.Price				= 180000;
	refShip.HP					= 7000;
	refShip.SP					= 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_whole_black_patch1.tga";
	refShip.EmblemedSails.nationFileName = "sail_whole_black_patch2.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 2;
	refShip.Viper_SailsTypeDesign = 0;
	// refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck6";
	refShip.CannonsDeck = 2;
	refShip.CargoHold = 1;
	refShip.Cabin = "Cabin4"; // Thomas the Terror
// <-- KK

	refShip.Type.Trade			= false;
	refShip.Type.War			= true;

	refShip.CanBuy				= false;
	refShip.CanEncounter		= false; 

	refShip.WaterLine			= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 1.0;

	refShip.InertiaAccelerationX = 0.4;	refShip.InertiaBrakingX = 2.0;
	refShip.InertiaAccelerationY = 10;	refShip.InertiaBrakingY = 4;
	refShip.InertiaAccelerationZ = 4.0;	refShip.InertiaBrakingZ = 2.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY = 0.5;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY = 1.0;
	refShip.Height.Knippels.Y	= 10.0;	refShip.Height.Knippels.DY = 8.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY = 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

	//-------------------------------------------------------------------------
	// The Cursed Pearl by Kazeite
	//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name				= "BlackPearl";
	refShip.BigPicTex			= 1;
	refShip.BigPicTexName		= "SHIPS1";
	refShip.all					= "BlackPearl";
	refShip.SName				= "CursedPearl";
	refShip.id					= SHIP_BLACK_PEARL; // Fudge Dragon: Re-enable skeletons
	refShip.Nation				= PIRATE;
	refShip.unique				= true;
	refShip.Class				= 3;
	refShip.Walk				= "BlackPearl";
	refShip.Cannon				= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber			= 24;
	refShip.Weight				= Tonnes2CWT(1100);
	refShip.Capacity			= 2200;
	refShip.CannonsQuantity		= 36;
	refShip.Cannons.Borts.cannonf.qty	= 2;
	refShip.Cannons.Borts.cannonb.qty	= 2;
	refShip.MaxCrew				= 300;
	refShip.MinCrew				= 60;
	refShip.SpeedRate			= 16.8;
	refShip.TurnRate			= 36.5;
	refShip.Price				= 180000;
	refShip.HP					= 100000; // stronger
	refShip.SP					= 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_BlackPearl.tga";
	refShip.EmblemedSails.nationFileName = "sail_BlackPearl.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 1;
	refShip.Viper_SailsTypeColour = 2;
	refShip.Viper_SailsTypeDesign = 0;
	// refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck2";
	refShip.CannonsDeck = 2;
	refShip.CargoHold = 1;
	refShip.Cabin = "Cabin4"; // Thomas the Terror
// <-- KK

	refShip.Type.Trade			= false;
	refShip.Type.War			= true;

	refShip.CanBuy				= false;
	refShip.CanEncounter		= false; 

	refShip.WaterLine			= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 1.0;

	refShip.InertiaAccelerationX = 0.4;	refShip.InertiaBrakingX = 2.0;
	refShip.InertiaAccelerationY = 10;	refShip.InertiaBrakingY = 4;
	refShip.InertiaAccelerationZ = 4.0;	refShip.InertiaBrakingZ = 2.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY = 0.5;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY = 1.0;
	refShip.Height.Knippels.Y	= 10.0;	refShip.Height.Knippels.DY = 8.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY = 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

	//-------------------------------------------------------------------------
	// The Wicked Wench by Kazeite
	//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name				= "WickedWench";
	refShip.BigPicTex			= 1;
	refShip.BigPicTexName		= "SHIPS1";
	refShip.all					= "BlackPearl";
	refShip.SName				= "WickedWench";
	refShip.id					= refShip.Name;
	refShip.Nation				= ENGLAND;
	refShip.unique				= true;
	refShip.Class				= 3;
	refShip.Walk				= "BlackPearl";
	refShip.Cannon				= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber			= 24;
	refShip.Weight				= Tonnes2CWT(1100);
	refShip.Capacity			= 2200;
	refShip.CannonsQuantity		= 36;
	refShip.Cannons.Borts.cannonf.qty	= 2;
	refShip.Cannons.Borts.cannonb.qty	= 2;
	refShip.MaxCrew				= 300;
	refShip.MinCrew				= 60;
	refShip.SpeedRate			= 16.8;
	refShip.TurnRate			= 36.5;
	refShip.Price				= 180000;
	refShip.HP					= 7000;
	refShip.SP					= 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // PB

	refShip.Type.Trade			= false;
	refShip.Type.War			= true;

	refShip.CanBuy				= false;
	refShip.CanEncounter		= false; 

	refShip.WaterLine			= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 1.0;

	refShip.InertiaAccelerationX = 0.4;	refShip.InertiaBrakingX = 2.0;
	refShip.InertiaAccelerationY = 10;	refShip.InertiaBrakingY = 4;
	refShip.InertiaAccelerationZ = 4.0;	refShip.InertiaBrakingZ = 2.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY = 0.5;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY = 1.0;
	refShip.Height.Knippels.Y	= 10.0;	refShip.Height.Knippels.DY = 8.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY = 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Superior Warship by Kazeite
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[n]);
	refShip.Name			= "SuperiorWarship";
	refShip.id			= refShip.Name; // PS
	refShip.all			= "Warship"; // KK
	refShip.sname			= "SuperiorWarship";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2; // NK - 1
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(3000);
	refShip.Capacity		= 3500; // NK - 3500;
	refShip.CannonsQuantity = 74; 
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 700; // NK - 600
	refShip.MinCrew		 = 150; // NK - 150
	refShip.SpeedRate	   = 12.8; // NK - 19.2
	refShip.TurnRate		= 25.8; // NK - 45;
	refShip.Price		   = 350000; // NK - 250000
	refShip.HP			  = 12000; // NK - 20000
	refShip.SP			  = 100;
	// KK refShip.AbordageLocation = "BOARDING_BATTLESHIP";
	refShip.RigType = "Fri";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.CanBuy				= true;
	refShip.CanEncounter		= true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.4;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	// NK -->
	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	// NK <--

//-------------------------------------------------------------------------
// HMS Interceptor by Kazeite
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Interceptor";
	refShip.All				= "Brig1";
	refShip.SName			= "Interceptor";
	refShip.walk			= "";
	refShip.id				= refShip.Name;
	refShip.nation			= ENGLAND;
	refShip.Class			= 3;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1500;
	refShip.CannonsQuantity = 18;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 0;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 160;
	refShip.MinCrew		 = 2; //SJG to allow for escape from redmond - was 32;
	refShip.SpeedRate		= 14.0;
	refShip.TurnRate		= 40;
	refShip.Price		   = 80000;
	refShip.HP			  = 2500;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.CanBuy				= false;
	refShip.CanEncounter		= false;

	refShip.WaterLine = 1.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

//-------------------------------------------------------------------------
// Amsterdam by Doober and Kazeite
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_FRANCE]);
	refShip.Name			= "Amsterdam";
	refShip.id				= refShip.Name;
	refShip.SName			= "Amsterdam";
	refShip.all				= "corvette1";
	refShip.Nation			= HOLLAND; // PB
	refShip.Class			= 3; // PB
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 12;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 46;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.Walk			= "Amsterdam"; // SeaNorris
	refShip.MaxCrew			= 400;
	refShip.MinCrew			= 100;
	refShip.SpeedRate		= 13;
	refShip.TurnRate		= 35;
	refShip.Price			= 220000;
	refShip.HP				= 5000;
	refShip.SP				= 100;
	// KK refShip.AbordageLocation = "BOARDING_CORVETTE";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.CanBuy			= true;
	refShip.CanEncounter	= true;

	refShip.Rigtype = "Corvette1";
	refShip.WaterLine = -0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Batavia1 by Yo-ho-ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Batavia1";
	refShip.id				= refShip.Name;
	refShip.all				= "Fleut4_50";
	refShip.walk			= "";
	refShip.Nation			= HOLLAND;
    refShip.Class           = 3;
    refShip.Cannon          = CANNON_TYPE_CANNON_LBS16;
    refShip.MaxCaliber      = 12;
    refShip.Weight			= Tonnes2CWT(650);
    refShip.Capacity        = 3200;
    refShip.CannonsQuantity = 32;

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

    refShip.MaxCrew         = 185;
    refShip.MinCrew         = 60;
    refShip.SpeedRate		= 11.55;
    refShip.TurnRate        = 30;
    refShip.Price           = 98600;
    refShip.HP              = 3800;
    refShip.SP              = 100;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy			= true;

	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refship.WaterLine = 0.7;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.3;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX	= 0.2;	refship.InertiaBrakingX		= 2.0;
	refship.InertiaAccelerationY	= 7;	refship.InertiaBrakingY		= 6;
	refship.InertiaAccelerationZ	= 4.0;	refship.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b1	= 1;
	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	refShip.GeraldSails.rey_b4	= 1;

//-------------------------------------------------------------------------
// Batavia2 by Yo-ho-ho and Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Batavia2";
	refShip.id				= refShip.Name;
	refShip.all				= "Fleut4_50";
	refShip.walk			= "";
	refShip.Nation			= HOLLAND;
	refShip.Class			= 4;
	refShip.Cannon			= CANNON_TYPE_Long_LBS6;
	refShip.MaxCaliber		= 6;
	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 3200;
	refShip.CannonsQuantity		= 30;

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew			= 270;
	refShip.MinCrew			= 54;
	refShip.SpeedRate		= 10.0;
	refShip.TurnRate		= 30;
	refShip.Price			= 65000;
	refShip.HP			= 3000;
	refShip.SP			= 100;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy			= true;
	refShip.Type.Trade		= true;
	refShip.Type.War		= false;

	refShip.WaterLine		= 0.3;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 0.9;
	refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Sirius1 by Yo-ho-ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Sirius1";
	refShip.id				= refShip.Name;
	refShip.all				= "Frigate1";
	refShip.walk			= "";
	refShip.Nation			= ENGLAND;
    refShip.Class           = 2;
    refShip.Cannon          = CANNON_TYPE_CANNON_LBS24;
    refShip.MaxCaliber      = 32;
	refShip.Weight			= Tonnes2CWT(1000);
    refShip.Capacity        = 3750;
    refShip.CannonsQuantity = 48;

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

    refShip.MaxCrew         = 380;
    refShip.MinCrew         = 84;
    refShip.SpeedRate       = 14.7;
    refShip.TurnRate        = 42;
    refShip.Price           = 190000;
    refShip.HP              = 6000;
    refShip.SP              = 100;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy			= true;

	refShip.Type.Trade		= false;
	refShip.Type.War		= true;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX	= 0.2;	refship.InertiaBrakingX		= 2.0;
	refship.InertiaAccelerationY	= 10;	refship.InertiaBrakingY		= 4;
	refship.InertiaAccelerationZ	= 4.0;	refship.InertiaBrakingZ		= 2.0;

	refShip.GeraldSails.rey_b1	= 1;
	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	refShip.GeraldSails.rey_b4	= 1;

//-------------------------------------------------------------------------
//      Flying Dutchman - Model from Russian SLiB Mod, Modified by Thomas the Terror
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "FlyingDutchman";
	refShip.Walk		 	= "FlyingDutchman";
	refShip.SName			= "FlyingDutchman";
	refShip.unique			= true;
	refShip.id				= "FlyingDutchman"; // PS
	refShip.Class			= 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber		= 32;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 4000;
	refShip.CannonsQuantity		= 60;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 6;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew			= 420;
	refShip.MinCrew			= 40;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 36.0;
	refShip.Price			= 300000;
	refShip.HP				= 5500;
	refShip.SP				= 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_dutchman1.tga";
	refShip.EmblemedSails.nationFileName = "sail_dutchman1.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;

	refShip.QDeck				= "ShipDeck2";
	refShip.CannonsDeck			= 3;
	refShip.CargoHold			= 2;
	refShip.Cabin				= "Cabin3";
	//refShip.AbordageLocation	= "BOARDING_BATTLESHIP";
// <-- KK

	refShip.CanEncounter		= false;
	refShip.CanBuy				= false;
	refShip.Type.Trade 			= false;
	refShip.Type.War 			= true;

	refShip.WaterLine			= 2.2;
	refShip.SpeedDependWeight	= 0.4;
	refShip.SubSeaDependWeight	= 1.15;
	//refShip.TurnDependWeight	= 0.4;

	refship.InertiaAccelerationX	= 3.0;	refship.InertiaBrakingX		= 3.0;
	refship.InertiaAccelerationY	= 2;	refship.InertiaBrakingY		= 2;
	refship.InertiaAccelerationZ	= 3.0;	refship.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2		= 1;
	refShip.GeraldSails.rey_b3		= 1;
	refShip.GeraldSails.rey_b1		= 1;

//-------------------------------------------------------------------------
//      Cursed Flying Dutchman - Model from Russian SLiB Mod, Modified by Razor
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "CursedDutchman";
	refShip.SName			= "CursedDutchman";
	refShip.unique			= true;
	refShip.id				= "CursedDutchman"; // PS
	refShip.Class			= 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber		= 32;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 4000;
	refShip.CannonsQuantity		= 60;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 6;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew			= 420;
	refShip.MinCrew			= 40;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 36.0;
	refShip.Price			= 300000;
	refShip.HP				= 5500;
	refShip.SP				= 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_dutchman2.tga";
	refShip.EmblemedSails.nationFileName = "sail_dutchman2.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;

	refShip.QDeck				= "ShipDeck2";
	refShip.CannonsDeck			= 3; // KK
	refShip.CargoHold			= 2; // KK
	refShip.Cabin				= "Cabin3";
	//refShip.AbordageLocation	= "BOARDING_BATTLESHIP";
// <-- KK

	refShip.CanEncounter		= false;
	refShip.CanBuy				= false;
	refShip.Type.Trade 			= false;
	refShip.Type.War 			= true;

	refShip.WaterLine			= 2.2;
	refShip.SpeedDependWeight	= 0.4;
	refShip.SubSeaDependWeight	= 1.15;
	//refShip.TurnDependWeight	= 0.4;

	refship.InertiaAccelerationX	= 3.0;	refship.InertiaBrakingX		= 3.0;
	refship.InertiaAccelerationY	= 2;	refship.InertiaBrakingY		= 2;
	refship.InertiaAccelerationZ	= 3.0;	refship.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2		= 1;
	refShip.GeraldSails.rey_b3		= 1;
	refShip.GeraldSails.rey_b1		= 1;

//-------------------------------------------------------------------------
// Endeavour - Model from VCO, Modified by Razor
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Endeavour";
	refShip.all				= "Manowar1";
	refShip.SName			= "Endeavour";
	refShip.unique			= true;
	refShip.id				= refShip.Name;
	refShip.Class			= 1;
	refShip.Walk			= "";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(3000);
	refShip.Capacity		= 6000;
	refShip.CannonsQuantity		= 102;
	refShip.Cannons.Borts.cannonf.qty = 0;
	refShip.Cannons.Borts.cannonb.qty = 0;
	refShip.MaxCrew			= 820;
	refShip.MinCrew			= 160;
	refShip.SpeedRate		= 11.0;
	refShip.TurnRate		= 24.8;
	refShip.Price			= 450000;
	refShip.HP				= 13000;
	refShip.SP				= 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_purewhite_common.tga";
	refShip.EmblemedSails.nationFileName = "sail_purewhite_common.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;

	refShip.QDeck				= "ShipDeck3";
	refShip.CannonsDeck			= 3; // KK
	refShip.CargoHold			= 2; // KK
	refShip.Cabin				= "Cabin1"; // KK
// <-- KK

	refShip.CanEncounter		= false;
	refShip.CanBuy				= false;
	refShip.Type.Trade 			= false;
	refShip.Type.War 			= true;

	refShip.WaterLine			= 0.0;
	refShip.SpeedDependWeight	= 0.3;
	refShip.SubSeaDependWeight	= 1.15;
	//refShip.TurnDependWeight	= 0.9;

	refship.InertiaAccelerationX	= 0.3;	refship.InertiaBrakingX		= 2.0;
	refship.InertiaAccelerationY	= 7;	refship.InertiaBrakingY		= 6;
	refship.InertiaAccelerationZ	= 4.0;	refship.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2		= 1;
	refShip.GeraldSails.rey_b3		= 1;

//-------------------------------------------------------------------------
// Dauntless  by Darth-me, model from Razor's Endeavor
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Dauntless";
	refShip.all				= "Manowar1";
	refShip.SName			= "Dauntless";
	refShip.unique			= true;
	refShip.id				= refShip.Name;
	refShip.Class			= 1;
	refShip.Walk			= "";
	refShip.Cannon             = CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber         = 32;
	refShip.Weight             = Tonnes2CWT(3000);
	refShip.Capacity         = 6000;
	refShip.CannonsQuantity  = 100;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	refShip.MaxCrew             = 765;
	refShip.MinCrew             = 150;
	refShip.SpeedRate         = 8;
	refShip.TurnRate         = 20;
	refShip.Price             = 450000;
	refShip.HP                 = 14500;
	refShip.SP                 = 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_purewhite_common.tga";
	refShip.EmblemedSails.nationFileName = "sail_purewhite_common.tga";
	refShip.Viper_SailsTypeType = 5;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 0;
	refShip.Viper_SailsTypeDesign = 0;

	refShip.QDeck				= "ShipDeck3";
	refShip.CannonsDeck			= 3; // KK
	refShip.CargoHold			= 2; // KK
	refShip.Cabin				= "Cabin1"; // KK
// <-- KK

    refShip.Type.Trade            = false;
    refShip.Type.War            = true;

    refShip.CanBuy                = false;
    refShip.CanEncounter        = false;

    refShip.WaterLine = 0.0;
    refShip.SpeedDependWeight = 0.3;
    refShip.SubSeaDependWeight = 0.9;

    refShip.InertiaAccelerationX    = 0.3;    refShip.InertiaBrakingX        = 2.0;
    refShip.InertiaAccelerationY    = 7;    refShip.InertiaBrakingY        = 6;
    refShip.InertiaAccelerationZ    = 4.0;    refShip.InertiaBrakingZ        = 1.0;

    refShip.GeraldSails.rey_b2    = 1;
    refShip.GeraldSails.rey_b3    = 1;

//-------------------------------------------------------------------------
// FrenchSloop by Darth-me
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "FrenchSloop";
	refShip.id				= refShip.Name; // PS
	refShip.all				= "Sloop1";
	refShip.nation			= FRANCE;
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(170);
	refShip.Capacity		= 850;
	refShip.CannonsQuantity = 16;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew		 = 150;
	refShip.MinCrew		 = 50;
	refShip.SpeedRate		= 14.5;
	refShip.TurnRate		= 60;
	refShip.Price		   = 27500;
	refShip.HP			  = 1600;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 3.0;

	// LDH changed 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

//-------------------------------------------------------------------------
// Galleon C3 - Model from VCO online, Modified by Razor
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_GALLEONC3_FRANCE]);
	refShip.Name = "GalleonC3";
	refShip.all = "Galeon1";
	refShip.SName = "GalleonC3";

	refShip.id = refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class = 3;
	refShip.Walk = "";
	refShip.Cannon = CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber = 18;
	refShip.Weight = Tonnes2CWT(1000);
	refShip.Capacity = 2000;
	refShip.CannonsQuantity = 30;

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;

	refShip.MaxCrew = 280;
	refShip.MinCrew = 54;
	refShip.SpeedRate = 12.0;
	refShip.TurnRate = 36;
	refShip.Price = 75000;
	refShip.HP = 3500;
	refShip.SP = 100;
	refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.CanEncounter = true;
	refShip.CanBuy = true;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refShip.ClosestPoint = 0.325; // same as Pinnace "fast galleon"
	refShip.BestPoint = 0.85; // same as Pinnace
	refShip.RigType = sDet;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX = 0.2; refShip.InertiaBrakingX = 2.0;
	refShip.InertiaAccelerationY = 8; refShip.InertiaBrakingY = 6;
	refShip.InertiaAccelerationZ = 4.0; refShip.InertiaBrakingZ = 4.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

//-------------------------------------------------------------------------
// Bartolomeu's ship (Santiago) by Bartolomeu o Portugues
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "FastCaravel";
	refShip.all 			= "Caravel2";
	refShip.SName 			= "FastCaravel";
	refShip.id				= refShip.Name;
	refShip.Walk		 = "CARAVEL2";
	refShip.unique				= true;
	refShip.Nation			= PORTUGAL;
	refShip.Class		   = 4;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity 	= 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 180;
	refShip.MinCrew		 = 40;
	refShip.SpeedRate		= 11.0;
	refShip.TurnRate		= 32;
	refShip.Price		   = 60000;
	refShip.HP			  = 1900;
	refShip.SP			  = 100;
// KK -->
	refShip.EmblemedSails.normalTex = "sail_whole_red_plain.tga";
	refShip.EmblemedSails.nationFileName = "sail_whole_red_pirate6.tga";
	refShip.Viper_SailsTypeType = 0;
	refShip.Viper_SailsTypeModel = 0;
	refShip.Viper_SailsTypeColour = 1;
	refShip.Viper_SailsTypeDesign = 0;
	// refShip.AbordageLocation = "BOARDING_SCHOONER";

	refShip.QDeck = "ShipDeck5";
	refShip.CannonsDeck = 1;
	refShip.CargoHold = 1;
	refShip.Cabin = "Cabin_medium";
// <-- KK
	refShip.CanEncounter	= false;
	refShip.CanBuy		= false;
	refShip.Type.Trade 		= true;
	refShip.Type.War		= false;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.5;
	//refShip.TurnDependWeight = 0.8;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX	= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY	= 4;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ	= 3.0;

//-------------------------------------------------------------------------
//      Fast Galleon (FastGalleon1) from AOP added by pirate_kk, retextured by Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "FastGalleon1";
	refShip.Nation  	= SPAIN;
	refShip.all = "Galeon1";
	refShip.id				= "FastGalleon1";
	refShip.Class		   = 3;
	refShip.SName = "FastGalleon1";
	refShip.Walk  = "";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 3000;
	refShip.CannonsQuantity = 36;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	refShip.MaxCrew		 = 380;
	refShip.MinCrew		 = 70;
	refShip.SpeedRate		= 13.5;
	refShip.TurnRate		= 31;
	refShip.Price		   = 120000;
	refShip.HP			  = 4500;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy		= true;
	refShip.Type.Trade 	= false;
	refShip.Type.War 	= true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Fast Galleon (FastGalleon2) from AOP added by pirate_kk
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "FastGalleon2";
	refShip.all = "Galeon1";
	refShip.id				= "FastGalleon2";
	refShip.Class		   = 3;
	refShip.SName = "FastGalleon2";
	refShip.Walk  = "";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 3000;
	refShip.CannonsQuantity = 36;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	refShip.MaxCrew		 = 380;
	refShip.MinCrew		 = 70;
	refShip.SpeedRate		= 13.5;
	refShip.TurnRate		= 31;
	refShip.Price		   = 120000;
	refShip.HP			  = 4500;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy		= true;
	refShip.Type.Trade 	= false;
	refShip.Type.War 	= true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;	refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

	//-------------------------------------------------------------------------
	// SloopBrig  "Brig rigged Sloop", "Minibrig" by Cpt.Daniel Wolf -2007 june
	//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_BRIG_FRANCE]);
	refShip.Name			 = "SloopBrig";
	refShip.Nation  	= ENGLAND;
	refShip.id 			 = refShip.Name; // PS
	refShip.all			 = "Shnyava1";
	refShip.Walk		 = "schooner1";
	refShip.sname			= "SloopBrig";
	refShip.Class			= 4;
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(200);
	refShip.Capacity		 = 1000;
	refShip.CannonsQuantity = 20;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 90;
	refShip.MinCrew	  = 20;
	refShip.SpeedRate		 = 15;
	refShip.TurnRate		 = 47;
	refShip.Price			= 38000;
	refShip.HP 		   = 1700;
	refShip.SP 		   = 100;

	refShip.QDeck = "ShipDeck1"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.2;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.ClosestPoint = 0.3;
	refShip.BestPoint = 0.8;
	refShip.RigType = "Shn";

//-------------------------------------------------------------------------
// Light Brig (LightBrig1) from AOP added by pirate_kk, retextured by Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "LightBrig1";
	refShip.All	  = "Brig1";
	refShip.SName	 = "LightBrig1";
	refShip.id 	 = refShip.Name;
	refShip.Class			= 5;
	refShip.Walk		 = "LightBrig";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(182);
	refShip.Capacity		 = 900;
	refShip.CannonsQuantity = 16;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	refShip.MaxCrew	  = 116;
	refShip.MinCrew	  = 24;
	refShip.SpeedRate		= 12.7;
	refShip.TurnRate		 = 47;
	refShip.Price			= 22000;
	refShip.HP 		   = 1600;
	refShip.SP 		   = 100;

	refShip.CanEncounter	 = true;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	//refShip.GeraldSails.rey_b2  = 1;
	//refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "Shn";

//-------------------------------------------------------------------------
// Light Brig (LightBrig2) from AOP added by pirate_kk, retextured by Thomas the Terror
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "LightBrig2";
	refShip.All	  = "Brig1";
	refShip.SName	 = "LightBrig2";
	refShip.id 	 = refShip.Name;
	refShip.Class			= 5;
	refShip.Walk		 = "LightBrig";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber		= 9;
	refShip.Weight 		 = Tonnes2CWT(182);
	refShip.Capacity		 = 900;
	refShip.CannonsQuantity = 16;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	refShip.MaxCrew	  = 116;
	refShip.MinCrew	  = 24;
	refShip.SpeedRate		= 12.7;
	refShip.TurnRate		 = 47;
	refShip.Price			= 22000;
	refShip.HP 		   = 1600;
	refShip.SP 		   = 100;

	refShip.CanEncounter	 = true;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.4;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 2.0;
	refShip.InertiaAccelerationY	 = 12;	 refShip.InertiaBrakingY	 = 9;
	refShip.InertiaAccelerationZ	 = 6.0;  refShip.InertiaBrakingZ	 = 4.0;

	refShip.Height.Bombs.Y 	 = 1.0; 	 refShip.Height.Bombs.DY	 = 1.0;
	refShip.Height.Grapes.Y	 = 2.0; 	 refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y	 = 15.0;	 refShip.Height.Knippels.DY  = 10.0;
	refShip.Height.Balls.Y 	 = 1.0; 	 refShip.Height.Balls.DY	 = 1.0;

	refShip.GeraldSails.rey_b2  = 1;
	refShip.GeraldSails.rey_b3  = 1;

	refShip.RigType = "Shn";

// --> BEGIN
// New SLiB Ships - September 2, 2007. Added by KevAtl
// SL = SLiB (standard ship)
// SS = SLiB Sport (less HP, less cargo, slightly faster ship)

//-------------------------------------------------------------------------
//			Brig SS (Brig3 from SLiB) by KevAtl
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name	= "Brig3";
	refShip.All		= "Brig2";
	refShip.SName	= "Brig3";
	refShip.id		= refShip.Name;
	refShip.Class	= 3;
	//refShip.Nation	= PIRATE;

	refShip.Weight			= Tonnes2CWT(300);
	refShip.Capacity		= 1400;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber	= 18;

	refShip.CannonsQuantity = 22;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;

	refShip.MaxCrew		= 175;
	refShip.MinCrew		= 45;
	refShip.SpeedRate	= 15.75;
	refShip.TurnRate	= 45;

	refShip.Price	= 95000;
	refShip.HP		= 2200;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade		= false;
	refShip.Type.War			= true;
	refShip.CanEncounter	= true;
	refShip.CanBuy				= true;

	refShip.WaterLine						= 0.1;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.4;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;		refShip.InertiaBrakingY		= 9;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.Height.Bombs.Y		= 1.0;	refShip.Height.Bombs.DY			= 1.0;
	refShip.Height.Grapes.Y		= 2.0;	refShip.Height.Grapes.DY		= 1.0;
	refShip.Height.Knippels.Y	= 15.0;	refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;	refShip.Height.Balls.DY			= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//			Corvette SS (Corvette4 from SLiB) by KevAtl
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name		= "Corvette4";
	refShip.id			= refShip.Name;
	refShip.all			= "Corvette2";
	refShip.sname		= "Corvette4";
	refShip.Class		=	2;
	refShip.Nation	= PIRATE;

	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1800;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber	= 24;

	refShip.CannonsQuantity = 32;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew		= 295;	
	refShip.MinCrew		= 65; 	
	refShip.SpeedRate	= 15;
	refShip.TurnRate	= 40;

	refShip.Price	= 125000;
	refShip.HP		= 3250;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.WaterLine						= 0.1;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.55;
	//refShip.TurnDependWeight	= 0.8;

	refShip.Type.Trade		= false;
	refShip.Type.War 			= true;
	refShip.CanEncounter	= true;
	refShip.CanBuy 				= true;	

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;		refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//			Corvette SL (Corvette5 from SLiB) by KevAtl
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Corvette5";
	refShip.id		= refShip.Name;
	refShip.all		= "Corvette2";
	refShip.sname	= "Corvette5";
	refShip.Class	=	2;
	// refShip.Nation	= PIRATE;

	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1900;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber	= 18;

	refShip.CannonsQuantity = 32;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew		= 275;	
	refShip.MinCrew		= 65; 	
	refShip.SpeedRate	= 15;
	refShip.TurnRate	= 40;

	refShip.Price	= 125000;
	refShip.HP		= 3500;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.WaterLine						= 0.1;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.55;
	//refShip.TurnDependWeight	= 0.8;

	refShip.Type.Trade		= false;
	refShip.Type.War 			= true;
	refShip.CanEncounter	= true;
	refShip.CanBuy 				= true;	

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;		refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//			Manowar SS (Manowar_spa from SLiB) by KevAtl
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Manowar_spa";
	refShip.id		= refShip.Name;
	refShip.all		= "Manowar1";
	refShip.sname	= "Manowar_spa";
	refShip.Class	= 1;
	// refShip.Nation	= PIRATE;

	refShip.Weight			= Tonnes2CWT(3000);
	refShip.Capacity		= 4500;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	= 32;

	refShip.CannonsQuantity	= 100;
	refShip.Cannons.Borts.cannonf.qty	= 2;
	refShip.Cannons.Borts.cannonb.qty	= 8;
	
	refShip.MaxCrew		= 875;
	refShip.MinCrew		= 175;
	refShip.SpeedRate	= 12.75;
	refShip.TurnRate	= 25;

	refShip.Price	= 395000;
	refShip.HP		= 13500;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
 	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade	= false;
	refShip.Type.War		= true;

	refShip.WaterLine 					= 0.0;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.9;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;		refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Manowar SL (Manowar3 from SLiB) added by KevAtl
// changed model name from Manowar3 to Manowar4
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Manowar4";
	refShip.id		= refShip.Name;
	refShip.all		= "Manowar1";
	refShip.sname	= "Manowar4";
	refShip.Class	= 1;
	// refShip.Nation	= PIRATE;
	// refShip.Walk		= "Manowar3";

	refShip.Weight			= Tonnes2CWT(3200);
	refShip.Capacity		= 5500;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	= 32;

	refShip.CannonsQuantity = 100;
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 8;

	refShip.MaxCrew		= 925;
	refShip.MinCrew		= 200;
	refShip.SpeedRate	= 12;
	refShip.TurnRate	= 22.5;

	refShip.Price	= 375000;
	refShip.HP		= 14500;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 3; // KK
 	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade	= false;
	refShip.Type.War 		= true;

	refShip.WaterLine						= 0.0;
	refShip.SpeedDependWeight 	= 0.3;
	refShip.SubSeaDependWeight	= 0.9;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;		refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 3.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//			Battleship SS (Battleship3 from SLiB) added by KevAtl
//			renamed ship model from Battleship3 to Battleship5
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Battleship5";
	refShip.id		= refShip.Name; 
	refShip.all		= "Battleship1";
	refShip.sname	= "Battleship5";
	refShip.Class	= 1;
	// refShip.Nation			= PIRATE;

	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 4000;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber	= 32;
	
	refShip.CannonsQuantity = 70;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	
	refShip.MaxCrew		= 600;
	refShip.MinCrew		= 125;
	refShip.SpeedRate	= 13.25;
	refShip.TurnRate	= 27.5;

	refShip.Price	= 275000; 
	refShip.HP		= 10000;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 2; // KK
 	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade	= false;
	refShip.Type.War		= true;

	refShip.WaterLine						= 0.1;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.55;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;		refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      Galleon SL (Galeon3 from SLiB) added by KevAtl
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Galeon3";
	refShip.all		= "Galeon2";
	refShip.SName	= "Galeon3";
	refShip.id		= refShip.Name;
	refShip.Class	= 3;

	refShip.Weight			= Tonnes2CWT(800);
	refShip.Capacity		= 3200;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber	= 18;

	refShip.CannonsQuantity = 40;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew		= 375;
	refShip.MinCrew		= 75;
	refShip.SpeedRate	= 13.5;
	refShip.TurnRate	= 32.5;

	refShip.Price	= 125000;
	refShip.HP		= 4250;
	refShip.SP		= 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
 	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.CanEncounter	= true;
	refShip.CanBuy				= true;
	refShip.Type.Trade 		= false;
	refShip.Type.War 			= true;

	refShip.WaterLine 					= 0.2;
	refShip.SpeedDependWeight 	= 0.3;
	refShip.SubSeaDependWeight	= 1.0;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 6;		refShip.InertiaBrakingY		= 3;
	refShip.InertiaAccelerationZ	= 2.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//------------------------------------------------------------------------- 
//			Fleut SL (Fleut3 from SLiB) Added by KevAtl
//------------------------------------------------------------------------- 

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	= "Fleut3";
	refShip.All		= "Fleut2";
	refShip.SName	= "Fleut3";
	refShip.id		= refShip.Name;
	refShip.Class	= 4;

	refShip.Weight			= Tonnes2CWT(450);
	refShip.Capacity		= 2500;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber	= 9;

	refShip.CannonsQuantity = 20;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;

	refShip.MaxCrew		= 225;
	refShip.MinCrew		= 45;
	refShip.SpeedRate	= 12;
	refShip.TurnRate	= 32.5;

	refShip.Price	= 65000;
	refShip.HP 		= 2500;
	refShip.SP 		= 100;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.Type.Trade	= true;
	refShip.Type.War		= false;

	refShip.WaterLine 					= 0.1;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.6;
	//refShip.TurnDependWeight	= 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 8;		refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 4.0;

// New SLiB Ships - September 2, 2007. Added by KevAtl. 
// END <--

//------------------------------------------------------------------------- 
//	Corvette1_47 model by Sprut (Slib) code Thomas the Terror
//------------------------------------------------------------------------- 
// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_PIRATE]);
	refShip.Name			= "Corvette1_47";
	refShip.All				= "Corvette1"; // PS
	//PRS3 - refShip.Nation			= PIRATE;
	refShip.id				= refShip.Name;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Walk			= "";
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(570);
	refShip.Capacity		= 1600; // NK was 1500, now up to 80%
	refShip.CannonsQuantity = 30; // KevAtl
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 300;		// LDH was 200 12Sep06
	refShip.MinCrew		 = 58; 		// LDH was 38 
	refShip.SpeedRate		= 15.0; // NK - 18.5
	refShip.TurnRate		= 40; // NK - 45;
	refShip.Price		   = 125000;
	refShip.HP			  = 3900;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
 	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//      British Warship by Thomas the Terror
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[n]);
	refShip.Name			= "BritishWarship";
	refShip.Nation  	= ENGLAND;
	refShip.id			= refShip.Name; // PS
	refShip.all			= "Warship"; // KK
	refShip.sname			= "SuperiorWarship";
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2; // NK - 1
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(3000);
	refShip.Capacity		= 3550; // NK - 3500;
	refShip.CannonsQuantity = 74; 
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 710; // NK - 600
	refShip.MinCrew		 = 130; // NK - 150
	refShip.SpeedRate	   = 13.0; // NK - 19.2
	refShip.TurnRate		= 26.0; // NK - 45;
	refShip.Price		   = 400000; // NK - 250000
	refShip.HP			  = 15000; // NK - 20000
	refShip.SP			  = 100;
	refShip.RigType = "Fri";

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.CanBuy				= true;
	refShip.CanEncounter		= true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;

	refShip.InertiaAccelerationX	= 0.4;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	// NK -->
	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;
	// NK <--

//-------------------------------------------------------------------------
// French Frigate by Seb
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_FRIGATE_FRANCE]);
	refShip.Name			= "FrenchFrigate";
	refShip.Nation  	= FRANCE;
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.all				= "frigate1"; // PB
	refShip.sname			= "FrenchFrigate";
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2200;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 350;
	refShip.MinCrew		 = 70;
	refShip.SpeedRate	   = 13;
	refShip.TurnRate		= 33;
	refShip.Price		   = 130000;
	refShip.HP			  = 5600;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.3;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 1.0;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// French Corvette by Seb
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	// PS <-- makeref(refShip,ShipsTypes[SHIP_CORVETTE_FRANCE]);
	refShip.Name			= "FrenchCorvette";
	refShip.Nation  	= FRANCE;
	refShip.id				= refShip.Name; // PS
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.All				= "Corvette1"; // PB
	refShip.sname			= "FrenchCorvette";
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 2000;
	refShip.CannonsQuantity = 32;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew		 = 310;		// LDH was 200 12Sep06
	refShip.MinCrew		 = 65;		// LDH was 40
	refShip.SpeedRate		= 14.5;
	refShip.TurnRate		= 37;
	refShip.Price		   = 110000;
	refShip.HP			  = 3900;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//  British Cutter by Thomas the Terror
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "Cutter2";
	refShip.All	  = "Sloop1";
	refShip.SName	 = "Cutter2";
	// PRS3
	//refShip.Nation   = ENGLAND;
	refShip.id 	 = refShip.Name; // + "_" + refShip.Nation;
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class	 = 6; 
	refShip.Walk		 = "Cutter1";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS6; // KK
	refShip.MaxCaliber		= 6; // KK
	refShip.Weight 		 = Tonnes2CWT(100);
	refShip.Capacity		 = 400;
	refShip.CannonsQuantity = 12;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	// NK <--
	refShip.MaxCrew	  = 36;
	refShip.MinCrew	  = 8;
	refShip.SpeedRate		= 16.0;//Falcon can make 0,5 better than "Light".
	refShip.TurnRate	     = 65;// "Light" = Famous pirate Cutter of 12 Cannon.
	refShip.Price			= 20000;
	refShip.HP 		   = 500;// "old ship"
	refShip.SP 		   = 100;
	refShip.No_NK_HFM_modstats = true;
	refShip.No_NK_HFM_modtype = true;
	refShip.CanEncounter	 = true; 

	refShip.QDeck = "ShipDeck4"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_small"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true; 
	refShip.RigType		 = "Slo";
	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.3;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	 = 0.2;  refShip.InertiaBrakingX	 = 0.5;
	refShip.InertiaAccelerationY	 = 10;	 refShip.InertiaBrakingY	 = 6;
	refShip.InertiaAccelerationZ	 = 4.0;  refShip.InertiaBrakingZ	 = 3.0;

	refShip.Height.Bombs.Y 		 = 1.0;  refShip.Height.Bombs.DY	 = 0.5;
	refShip.Height.Grapes.Y		 = 2.0;  refShip.Height.Grapes.DY	 = 1.0;
	refShip.Height.Knippels.Y		 = 10.0; refShip.Height.Knippels.DY  = 8.0;
	refShip.Height.Balls.Y 		 = 1.0;  refShip.Height.Balls.DY	 = 0.5;

//-------------------------------------------------------------------------
//	Cursed Corvette, Reskined corvette by Cylon13
//-------------------------------------------------------------------------

	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name		= "Corvette6";
	refShip.id			= refShip.Name;
	refShip.all			= "Corvette2";
	refShip.sname		= "Corvette6";
	refShip.Class		=	2;
	refShip.Nation	= PIRATE;

	refShip.Weight			= Tonnes2CWT(600);
	refShip.Capacity		= 1800;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber	= 24;

	refShip.CannonsQuantity = 32;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew		= 295;	
	refShip.MinCrew		= 65; 	
	refShip.SpeedRate	= 16;
	refShip.TurnRate	= 41;

	refShip.Price	= 125000;
	refShip.HP		= 1002500;
	refShip.SP		= 9000000;

	refShip.EmblemedSails.normalTex = "sail_dutchman2.tga";
	refShip.EmblemedSails.nationFileName = "sail_dutchman2.tga";

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.WaterLine						= 0.1;
	refShip.SpeedDependWeight		= 0.3;
	refShip.SubSeaDependWeight	= 0.55;
	//refShip.TurnDependWeight	= 0.8;

	refShip.Type.Trade		= false;
	refShip.Type.War 			= true;
	refShip.CanEncounter	= false;
	refShip.CanBuy 				= true;	

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 12;		refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 4.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//	Warship5 Warship - Skin by Seb coded by KevAtl 10-15-2007
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Warship5";
	refShip.id				= refShip.Name;
	refShip.all				= "Warship1"; // PB
	refShip.Nation  	= ENGLAND;
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber	= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KevAtl - 19L/19R/4B/2F

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew   = 580;
	refShip.MinCrew   = 116;
	refShip.SpeedRate = 13.5;
	refShip.TurnRate  = 32;
	refShip.Price = 250000;
	refShip.HP    = 9000;
	refShip.SP    = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	  refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//------------------------------------------------------------------------- 
//	Battleship 6 - Skin by Seb  Code by KevAtl 10-15-2007
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name       = "Battleship3_46";
	refShip.Nation  	= ENGLAND;
	refShip.All        = "Battleship1";
	refShip.SName      = "Battleship3_46";
	refShip.id         = refShip.Name;
	refShip.Class      = 1;

	refShip.Cannon     = CANNON_TYPE_LONG_LBS32;
	refShip.MaxCaliber = 32;
	refShip.Weight     = Tonnes2CWT(2500);
	refShip.Capacity   = 4500;

	refShip.CannonsQuantity = 70;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew    = 650;	
	refShip.MinCrew    = 135;
	refShip.SpeedRate  = 11.9;
	refShip.TurnRate   = 27.5;
	refShip.Price = 265000;
	refShip.HP    = 10000;
	refShip.SP    = 100;

	refShip.QDeck = "ShipDeck3"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 2; // KK
	refShip.Cabin = "Cabin1"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.55;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 7;	  refShip.InertiaBrakingY		= 6;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 1.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// British Lineship 4 - Skin by Seb code by KevAtl 10-15-2007
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Lineship4";
	refShip.id				= refShip.Name;
	refShip.Nation  		= ENGLAND;
	refShip.all				= "Lineship1"; // PB
	////curid = refShip.id; ShipLookupTable.id.(curid) = n-1; // PS
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1700);
	refShip.Capacity		= 3000;
	refShip.CannonsQuantity = 40;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew 		= 500;
	refShip.MinCrew 		= 100;
	refShip.SpeedRate		= 12.8;
	refShip.TurnRate		= 29;
	refShip.Price			= 225000;
	refShip.HP				= 8100;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
//	British Warship - Skin by Seb coded by KevAtl 10-15-2007
//	Warship4 GM model updated for 44 cannons by KevAtl 10-15-2007
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Warship4";
	refShip.id				= refShip.Name;
	refShip.all				= "Warship1"; // PB
	refShip.Nation  		= ENGLAND;
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 3500;
	refShip.CannonsQuantity = 44; // KevAtl - 19L/19R/4B/2F

	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew 		= 580;
	refShip.MinCrew 		= 116;
	refShip.SpeedRate		= 12.9;
	refShip.TurnRate		= 30;
	refShip.Price			= 250000;
	refShip.HP				= 9000;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY		= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//------------------------------------------------------------------------- 
//	British Frigate 2 - Skin by Seb coded by KevAtl 10-15-2007
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name        = "Frigate5_46";
	refShip.Nation      = ENGLAND;
	refShip.All         = "Frigate2";
	refShip.SName       = "Frigate5_46";
	refShip.id          = refShip.Name;
	refShip.Class       = 2;

	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber  = 18;
	refShip.Weight      = Tonnes2CWT(1000);
	refShip.Capacity    = 2250;

	refShip.CannonsQuantity = 42;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;

	refShip.MaxCrew		 = 375;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate  = 14.0;
	refShip.TurnRate   = 35.5;
	refShip.Price      = 155000;
	refShip.HP = 6000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War   = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight  = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	  refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//--------------------------------------------------------------------
// Dutch Frigate	 Thomas the Terror
//--------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]); 
	n++;
	refShip.Name         = "Frigate5_47";
	refShip.Nation  	        = HOLLAND;
	refShip.All            = "Frigate2";
	refShip.SName            = "Frigate5_47";
	refShip.id            = refShip.Name;
	refShip.Class		   = 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS18;
	refShip.MaxCaliber		= 18;
	refShip.Weight			= Tonnes2CWT(1000);
	refShip.Capacity		= 2250;
	refShip.CannonsQuantity = 42; // KNB fix cannon qty
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	refShip.MaxCrew		 = 340;
	refShip.MinCrew		 = 80;
	refShip.SpeedRate	   = 13.3;
	refShip.TurnRate		= 33.5;
	refShip.Price		   = 135000;
	refShip.HP			  = 5400;
	refShip.SP			  = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.2;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 0.2;	refShip.InertiaBrakingX		= 2.0;
	refShip.InertiaAccelerationY	= 10;	refShip.InertiaBrakingY		= 4;
	refShip.InertiaAccelerationZ	= 4.0;	refShip.InertiaBrakingZ		= 2.0;

	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// Lineship47 by Chris Roupé and Thomas the Terror
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Lineship47";
	refShip.id				= refShip.Name;
	refShip.walk			= "Lineship"; // PB
	refShip.BIPic			= "Lineship"; // PB
	refShip.BigPic			= "Lineship"; // KK
	refShip.BigPicTex		= 1; // KK
	refShip.BigPicTexName	= "SHIPS1"; // KK
	refShip.SName			= "Lineship"; // KK
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(1620);
	refShip.Capacity		= 2450;
	refShip.CannonsQuantity = 40; // KNB fix cannon qty
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew			= 500;
	refShip.MinCrew			= 115;
	refShip.SpeedRate		= 14.1;
	refShip.TurnRate		= 31.8;
	refShip.Price			= 250000;
	refShip.HP				= 6700;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.0;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.9;
	//refShip.TurnDependWeight = 0.8;

	refShip.InertiaAccelerationX	= 3.0;	refShip.InertiaBrakingX 	= 2.0;
	refShip.InertiaAccelerationY	= 14;	refShip.InertiaBrakingY 	= 5;
	refShip.InertiaAccelerationZ	= 5.0;	refShip.InertiaBrakingZ 	= 3.0;

	// LDH change to default 12Sep06
//	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY		= 0.5;
//	refShip.Height.Grapes.Y			= 2.0;	refShip.Height.Grapes.DY	= 1.0;
//	refShip.Height.Knippels.Y		= 10.0;	refShip.Height.Knippels.DY	= 8.0;
//	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY		= 0.5;

	refShip.GeraldSails.rey_b2	= 1;
	refShip.GeraldSails.rey_b3	= 1;

//-------------------------------------------------------------------------
// 16 Gun Brig (LightBrig3) from AOP added by SeaNorris
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	 = "LightBrig3";
	refShip.All	  = "Brig1";
	refShip.SName	 = "LightBrig3";
	refShip.id 	 = refShip.Name;
	refShip.Class			= 5;
	refShip.Walk		 = "LightBrig";
	refShip.Cannon		 = CANNON_TYPE_LONG_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight 		 = Tonnes2CWT(400);
	refShip.Capacity		 = 1800;
	refShip.CannonsQuantity = 16;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;
	refShip.MaxCrew		   = 180;
	refShip.MinCrew		   = 36;
	refShip.SpeedRate	   = 13.5;
	refShip.TurnRate	   = 40;
	refShip.Price		   = 87000;
	refShip.HP		   = 2400;
	refShip.SP		   = 100;

	refShip.CanEncounter	 = true;

	refShip.QDeck = "ShipDeck6"; // KK
	refShip.CannonsDeck = 0; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin3"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 0.1;
	refShip.SpeedDependWeight = 0.3;
	refShip.SubSeaDependWeight = 0.6;
	//refShip.TurnDependWeight = 0.3;

	refShip.InertiaAccelerationX	= 5.5;	refShip.InertiaBrakingX		= 5.5;
	refShip.InertiaAccelerationY	= 8.0;	refShip.InertiaBrakingY		= 8;
	refShip.InertiaAccelerationZ	= 6.0;	refShip.InertiaBrakingZ		= 6.0;

	refShip.Height.Bombs.Y		= 1.0;		refShip.Height.Bombs.DY		= 1.0;
	refShip.Height.Grapes.Y		= 2.0;		refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y	= 15.0;		refShip.Height.Knippels.DY	= 10.0;
	refShip.Height.Balls.Y		= 1.0;		refShip.Height.Balls.DY		= 1.0;

	refShip.GeraldSails.rey_b2		        = 1;
	refShip.GeraldSails.rey_b3		        = 1;
	refShip.GeraldSails.rey_b2.vscale		= 0.8;
	refShip.GeraldSails.rey_b3.vscale		= 0.8;

//-------------------------------------------------------------------------
// Lineship5 from AOP added by SeaNorris
//-------------------------------------------------------------------------
	// PS -->
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Lineship5";
	refShip.id				= refShip.Name;
	refShip.nation			= FRANCE; // PB
	refShip.walk			= "Lineship5"; // PB
	refShip.BIPic			= "Lineship"; // PB
	refShip.BigPic			= "Lineship"; // KK
	refShip.BigPicTex		= 1; // KK
	refShip.BigPicTexName	= "SHIPS1"; // KK
	refShip.SName			= "Lineship"; // KK
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS24;
	refShip.MaxCaliber		= 32;
	refShip.Weight			= Tonnes2CWT(2000);
	refShip.Capacity		= 4000;
	refShip.CannonsQuantity = 56;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew 		= 700;
	refShip.MinCrew 		= 150;
	refShip.SpeedRate		= 12.0;
	refShip.TurnRate		= 36.0;
	refShip.Price			= 300000;
	refShip.HP				= 5500;
	refShip.SP				= 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refShip.WaterLine = 2.2;
	refShip.SpeedDependWeight = 0.4;
	refShip.SubSeaDependWeight = 1.15;
	//refShip.TurnDependWeight = 0.4;

	refship.InertiaAccelerationX	= 3.0;	refship.InertiaBrakingX		= 3.0;
	refship.InertiaAccelerationY	= 2;	refship.InertiaBrakingY		= 2;
	refship.InertiaAccelerationZ	= 3.0;	refship.InertiaBrakingZ		= 3.0;

	refShip.GeraldSails.rey_b2		= 1;
	refShip.GeraldSails.rey_b3		= 1;
	refShip.GeraldSails.rey_b1		= 1;
	refShip.GeraldSails.rey_b1.vscale	= 0.8;
	refShip.GeraldSails.rey_b2.vscale	= 0.6;
	refShip.GeraldSails.rey_b3.vscale	= 0.6;

//------------------------------------------------------------------------- 
//	Fleut5 from AOP added by SeaNorris
//------------------------------------------------------------------------- 
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name	        = "Fleut5";
	refShip.All		= "Fleut2";
	refShip.SName	        = "Fleut5";
	refShip.id		= refShip.Name;
	refShip.Walk		= "Fleut5";
	refShip.Class	        = 4;
	refShip.Weight		= Tonnes2CWT(450);
	refShip.Capacity	= 2800;
	refShip.Cannon		= CANNON_TYPE_LONG_LBS9;
	refShip.MaxCaliber	= 12;

	refShip.CannonsQuantity = 18;
	refShip.Cannons.Borts.cannonf.qty = 2;
	refShip.Cannons.Borts.cannonb.qty = 2;

	refShip.MaxCrew		= 225;
	refShip.MinCrew		= 45;
	refShip.SpeedRate	= 12.0;
	refShip.TurnRate	= 35.0;

	refShip.Price	= 65800;
	refShip.HP 		= 2550;
	refShip.SP 		= 100;

	refShip.QDeck = "ShipDeck5"; // KK
	refShip.CannonsDeck = 1; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin_medium"; // KK

	refShip.CannonsDeck	= 1; 
	refShip.CargoHold	= 1; 

	refShip.Type.Trade	= true;
	refShip.Type.War	= false;

	refship.WaterLine				= 1.2;
	refship.SpeedDependWeight			= 0.35;
	refship.SubSeaDependWeight			= 0.8;
	refship.TurnDependWeight			= 0.35;
	
	refship.InertiaAccelerationX	= 4.5;	refship.InertiaBrakingX		= 4.5;
	refship.InertiaAccelerationY	= 6;	refship.InertiaBrakingY		= 6;
	refship.InertiaAccelerationZ	= 4.0;	refship.InertiaBrakingZ		= 4.0;

//-------------------------------------------------------------------------
// Heavy Trader (Regular)
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "HeavyTrader1";
	refShip.id				= refShip.Name;
	refShip.all				= "Galeon1"; // PB
	refShip.walk			= ""; // PB
	refShip.SName	        = "HeavyTrader"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_CANNON_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5300;
	refShip.CannonsQuantity = 52;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew = 650;
	refShip.MinCrew = 130;
	refShip.SpeedRate = 12;
	refShip.TurnRate = 30;
	refShip.Price = 200000;
	refShip.HP = 10000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX = 0.2;	refship.InertiaBrakingX = 2.0;
	refship.InertiaAccelerationY = 7;	refship.InertiaBrakingY = 6;
	refship.InertiaAccelerationZ = 4.0;	refship.InertiaBrakingZ = 1.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

//-------------------------------------------------------------------------
// Heavy Trader (Independent Trader) - by yo ho ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "HeavyTrader2";
	refShip.id				= refShip.Name;
	refShip.all				= "Galeon1"; // PB
	refShip.walk			= ""; // PB
	refShip.SName	        = "HeavyTrader"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_CANNON_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5300;
	refShip.CannonsQuantity = 52;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew = 650;
	refShip.MinCrew = 130;
	refShip.SpeedRate = 12;
	refShip.TurnRate = 30;
	refShip.Price = 200000;
	refShip.HP = 10000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX = 0.2;	refship.InertiaBrakingX = 2.0;
	refship.InertiaAccelerationY = 7;	refship.InertiaBrakingY = 6;
	refship.InertiaAccelerationZ = 4.0;	refship.InertiaBrakingZ = 1.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

//-------------------------------------------------------------------------
// Heavy Trader (French) - by yo ho ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "HeavyTrader3";
	refShip.id				= refShip.Name;
	refShip.all				= "Galeon1"; // PB
	refShip.walk			= ""; // PB
	refShip.nation			= FRANCE;
	refShip.SName	        = "HeavyTrader"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_CANNON_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5300;
	refShip.CannonsQuantity = 52;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew = 650;
	refShip.MinCrew = 130;
	refShip.SpeedRate = 12;
	refShip.TurnRate = 30;
	refShip.Price = 200000;
	refShip.HP = 10000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX = 0.2;	refship.InertiaBrakingX = 2.0;
	refship.InertiaAccelerationY = 7;	refship.InertiaBrakingY = 6;
	refship.InertiaAccelerationZ = 4.0;	refship.InertiaBrakingZ = 1.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

//-------------------------------------------------------------------------
// Heavy Trader (English) - by yo ho ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "HeavyTrader4";
	refShip.id				= refShip.Name;
	refShip.all				= "Galeon1"; // PB
	refShip.walk			= ""; // PB
	refShip.nation			= ENGLAND;
	refShip.SName	        = "HeavyTrader"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_CANNON_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5300;
	refShip.CannonsQuantity = 52;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew = 650;
	refShip.MinCrew = 130;
	refShip.SpeedRate = 12;
	refShip.TurnRate = 30;
	refShip.Price = 200000;
	refShip.HP = 10000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX = 0.2;	refship.InertiaBrakingX = 2.0;
	refship.InertiaAccelerationY = 7;	refship.InertiaBrakingY = 6;
	refship.InertiaAccelerationZ = 4.0;	refship.InertiaBrakingZ = 1.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

//-------------------------------------------------------------------------
// Heavy Trader (Dutch) - by yo ho ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "HeavyTrader5";
	refShip.id				= refShip.Name;
	refShip.all				= "Galeon1"; // PB
	refShip.walk			= ""; // PB
	refShip.nation			= HOLLAND;
	refShip.SName	        = "HeavyTrader"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_CANNON_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5300;
	refShip.CannonsQuantity = 52;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew = 650;
	refShip.MinCrew = 130;
	refShip.SpeedRate = 12;
	refShip.TurnRate = 30;
	refShip.Price = 200000;
	refShip.HP = 10000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = true;
	refShip.Type.War = false;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX = 0.2;	refship.InertiaBrakingX = 2.0;
	refship.InertiaAccelerationY = 7;	refship.InertiaBrakingY = 6;
	refship.InertiaAccelerationZ = 4.0;	refship.InertiaBrakingZ = 1.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

//-------------------------------------------------------------------------
// HMS Mordaunt - by yo ho ho
//-------------------------------------------------------------------------
	makeref(refShip,ShipsTypes[n]);
	n++;
	refShip.Name			= "Mordaunt1";
	refShip.id				= refShip.Name;
	refShip.all				= "Galeon1"; // PB
	refShip.walk			= ""; // PB
	refShip.SName	        = "LightLineship"; // PB
	refShip.Class			= 2;
	refShip.Cannon			= CANNON_TYPE_CANNON_LBS12;
	refShip.MaxCaliber		= 24;
	refShip.Weight			= Tonnes2CWT(2500);
	refShip.Capacity		= 5300;
	refShip.CannonsQuantity = 52;
	// NK cannon qtys 05-04-18 -->
	refShip.Cannons.Borts.cannonf.qty = 4;
	refShip.Cannons.Borts.cannonb.qty = 4;
	// NK <--
	refShip.MaxCrew = 650;
	refShip.MinCrew = 130;
	refShip.SpeedRate = 12;
	refShip.TurnRate = 30;
	refShip.Price = 200000;
	refShip.HP = 10000;
	refShip.SP = 100;

	refShip.QDeck = "ShipDeck2"; // KK
	refShip.CannonsDeck = 2; // KK
	refShip.CargoHold = 1; // KK
	refShip.Cabin = "Cabin2"; // KK

	refShip.Type.Trade = false;
	refShip.Type.War = true;

	refship.WaterLine = 0.5;
	refship.SpeedDependWeight = 0.3;
	refship.SubSeaDependWeight = 1.0;
	refship.TurnDependWeight = 0.8;

	refship.InertiaAccelerationX = 0.2;	refship.InertiaBrakingX = 2.0;
	refship.InertiaAccelerationY = 7;	refship.InertiaBrakingY = 6;
	refship.InertiaAccelerationZ = 4.0;	refship.InertiaBrakingZ = 1.0;

	refShip.GeraldSails.rey_b2 = 1;
	refShip.GeraldSails.rey_b3 = 1;

 //---DO NOT ADD BELOW THIS LINE---
	SHIP_TYPES_QUANTITY = n; // PS
//-------------------------------------------------------------------------
// Boat
//-------------------------------------------------------------------------
	SHIP_BOAT = SHIP_TYPES_QUANTITY;
	makeref(refShip,ShipsTypes[SHIP_BOAT]);
	refShip.Name			= "Boat";
	refShip.id				= "Boat"; // PSX
	refShip.unique = true; // PRS3
	//ShipLookupTable.id.Boat = SHIP_BOAT; // PSX
	refShip.Class		   = 7;
	refShip.Cannon		  = CANNON_TYPE_NONECANNON;
	refShip.MaxCaliber	  = 0;
	refShip.Weight			= Tonnes2CWT(10);
	refShip.Capacity		= 50;
	refShip.CannonsQuantity = 0;
	refShip.MaxCrew		 = 10;
	refShip.MinCrew		 = 2;
	refShip.SpeedRate		= 4;
	refShip.TurnRate		= 40;
	refShip.Price		   = 1000;
	refShip.HP			  = 100;
	refShip.SP			  = 100;

	refShip.CanEncounter	= false; // NK just to be sure.
	refShip.WaterLine = -0.1; // PB

	refShip.InertiaAccelerationX	= 5.0;	refShip.InertiaBrakingX		= 3.0;
	refShip.InertiaAccelerationY	= 0.4;	refShip.InertiaBrakingY		= 0.2;
	refShip.InertiaAccelerationZ	= 0.15;	refShip.InertiaBrakingZ		= 0.05;

	// LDH added 12Sep06
	refShip.Height.Bombs.Y			= 1.0;	refShip.Height.Bombs.DY 	= 0.5;
	refShip.Height.Grapes.Y 		= 2.0;	refShip.Height.Grapes.DY	= 1.0;
	refShip.Height.Knippels.Y		= 10.0; refShip.Height.Knippels.DY	= 8.0;
	refShip.Height.Balls.Y			= 1.0;	refShip.Height.Balls.DY 	= 0.5;

//-------------------------------------------------------------------------
// FORT
//-------------------------------------------------------------------------
	SHIP_FORT = SHIP_BOAT+1;
	makeref(refShip,ShipsTypes[SHIP_FORT]);
	refShip.Name			= "Fort";
	refShip.id				= "Fort"; // PSX
	refShip.unique = true; // PRS3
	//ShipLookupTable.id.Fort = SHIP_FORT; // PSX
	refShip.Class		   = 1;
	refShip.Cannon			= CANNON_TYPE_LONG_LBS42;
	refShip.MaxCaliber		= 42;
	refShip.Weight			= Tonnes2CWT(22500);
	refShip.Capacity		= 2700000;
	refShip.CannonsQuantity = 68;
	refShip.MaxCrew		 = 3200;
	refShip.MinCrew		 = 360;
	refShip.SpeedRate		= 11.2;
	refShip.TurnRate		= 20;
	refShip.Price		   = 12000;
	refShip.HP			  = 54000;
	refShip.SP			  = 100;

	if(USE_REAL_CANNONS)
	{
		refShip.Cannons.Borts.cannonf.FireZone	= Degree2Radian(90.0) * FIRE_ANGLE_SCALAR_W;
		refShip.Cannons.Borts.cannonf.FireDir	 = Degree2Radian(0.0);
		refShip.Cannons.Borts.cannonf.FireAngMin	= Degree2Radian(-15.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonf.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	
		refShip.Cannons.Borts.cannonr.FireZone	= Degree2Radian(90.0) * FIRE_ANGLE_SCALAR_W;
		refShip.Cannons.Borts.cannonr.FireDir	 = Degree2Radian(90.0);
		refShip.Cannons.Borts.cannonr.FireAngMin	= Degree2Radian(-15.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonr.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	
		refShip.Cannons.Borts.cannonb.FireZone	= Degree2Radian(90.0) * FIRE_ANGLE_SCALAR_W;
		refShip.Cannons.Borts.cannonb.FireDir	 = Degree2Radian(180.0);
		refShip.Cannons.Borts.cannonb.FireAngMin	= Degree2Radian(-15.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonb.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	
		refShip.Cannons.Borts.cannonl.FireZone	= Degree2Radian(90.0) * FIRE_ANGLE_SCALAR_W;
		refShip.Cannons.Borts.cannonl.FireDir	 = Degree2Radian(270.0);
		refShip.Cannons.Borts.cannonl.FireAngMin	= Degree2Radian(-15.0) * FIRE_ANGLE_SCALAR_H;
		refShip.Cannons.Borts.cannonl.FireAngMax	= Degree2Radian(10.0) * FIRE_ANGLE_SCALAR_H;
	}

	refShip.CanEncounter	= false;
	SHIP_TYPES_QUANTITY_WITH_FORT = SHIP_FORT+1;

	// Check
	ref rship2; // PS
	string sDet, cp, bp;
	//string sGalDet;
	//string sXebDet;
	//bool modstats, modaccel; // 05-04-10 no need for stats.
	bool modaccel;
	int si;
	// NK/HFM moved here 04-09-05
	for (int i=0; i<SHIP_TYPES_QUANTITY_WITH_FORT-1; i++)
	{
		makeref(refShip, ShipsTypes[i]);
		if (!CheckAttribute(refShip,"Name")) { continue; }
		// PS -->
		if(!CheckAttribute(refShip,"All"))
		{
			if(!CheckAttribute(refShip,"Walk")) { refShip.Walk = refShip.Name; }
			if(!CheckAttribute(refShip,"BIPic")) { refShip.BIPic = refShip.Name; }
			if(!CheckAttribute(refShip,"BigPic")) { refShip.BigPic = refShip.Name; }
			if(!CheckAttribute(refShip,"BigPicTex")) { refShip.BigPicTex = 0; }
			if(!CheckAttribute(refShip,"BigPicTexName")) { refShip.BigPicTexName = "SHIPS16"; }
			if(!CheckAttribute(refShip,"SName")) { refShip.SName = refShip.Name; }
		}
		else
		{
			si = GetShipIndex(refShip.All);
			if(si != -1 && si != SHIP_NOTUSED)
			{
				rship2= GetShipbyID(refShip.All);
				if(!CheckAttribute(refShip,"Walk")) refShip.Walk			= rship2.Walk;
				if(!CheckAttribute(refShip,"BIPic")) refShip.BIPic			= rship2.BIPic;
				if(!CheckAttribute(refShip,"BigPic")) refShip.BigPic			= rship2.BigPic;
				if(!CheckAttribute(refShip,"BigPicTex")) refShip.BigPicTex		= rship2.BigPicTex;
				if(!CheckAttribute(refShip,"BigPicTexName")) refShip.BigPicTexName	= rship2.BigPicTexName;
				if(!CheckAttribute(refShip,"SName")) refShip.SName			= rship2.SName;
			}
			else
			{
				if(!CheckAttribute(refShip,"Walk")) { refShip.Walk = refShip.Name; }
				if(!CheckAttribute(refShip,"BIPic")) { refShip.BIPic = refShip.Name; }
				if(!CheckAttribute(refShip,"BigPic")) { refShip.BigPic = refShip.Name; }
				if(!CheckAttribute(refShip,"BigPicTex")) { refShip.BigPicTex = 0; }
				if(!CheckAttribute(refShip,"BigPicTexName")) { refShip.BigPicTexName = "SHIPS16"; }
				if(!CheckAttribute(refShip,"SName")) { refShip.SName = refShip.Name; }
			}
				
		}
		if(!CheckAttribute(refShip,"CanBuy")) refShip.CanBuy = refShip.CanEncounter; // 04-12-10 to allow for enc but unbuyable or vice versa
		// PS <--
		if (!CheckAttribute(refShip,"TurnRate"))
		{
			Trace("ERROR: Ship " + i + " doesn't have TurnRate attribute");
		}
		if (!CheckAttribute(refShip,"SpeedRate"))
		{
			Trace("ERROR: Ship " + i + " doesn't have SpeedRate attribute");
		}
		if (!CheckAttribute(refShip,"Class"))
		{
			Trace("ERROR: Ship " + i + " doesn't have class attribute");
		}
		else
		{
			int iClass = sti(refShip.Class);
			if (iClass > MIN_CLASS) { Trace("ERROR: Ship " + i + " class > 7"); } //NK 04-09-13 changed these to defines.
			if (iClass < MAX_CLASS) { Trace("ERROR: Ship " + i + " class < 1"); }
		}
		refShip.InertiaAccelerationY = stf(refShip.InertiaAccelerationY) / 6.0;
		// KNB switch section NK 05-04-10
		if(!USE_REAL_CANNONS)
		{
			si = sti(refShip.MaxCaliber);
			switch(si)
			{
				case 4: refShip.MaxCaliber = 12; break;
				case 6: refShip.MaxCaliber = 12; break;
				
				case 9: refShip.MaxCaliber = 16; break;

				case 12: refShip.MaxCaliber = 24; break;
				case 18: refShip.MaxCaliber = 24; break;

				case 24: refShip.MaxCaliber = 32; break;
				case 32: refShip.MaxCaliber = 32; break;
				case 42: refShip.MaxCaliber = 32; break;
				refShip.MaxCaliber = 16;
			}
			si = sti(refShip.MaxCaliber);
			refShip.Cannon = GetCannonByTypeAndCaliber("cannon", si);
		}
		// handle arc cannon qtys 05-04-18, auto-assign the L/R arcs. -->		
		//make auto-assigned cannon qtys (-1) to 0.
		if(sti(refShip.Cannons.Borts.cannonf.qty) < 0) refShip.Cannons.Borts.cannonf.qty = 0;
		if(sti(refShip.Cannons.Borts.cannonb.qty) < 0) refShip.Cannons.Borts.cannonb.qty = 0;
		if(sti(refShip.Cannons.Borts.cannonl.qty) < 0) refShip.Cannons.Borts.cannonl.qty = 0;
		if(sti(refShip.Cannons.Borts.cannonr.qty) < 0) refShip.Cannons.Borts.cannonr.qty = 0;
		si = sti(refShip.CannonsQuantity); // how many guns
		if(si) // if ship has guns
		{
			si -= sti(refShip.Cannons.Borts.cannonf.qty);
			si -= sti(refShip.Cannons.Borts.cannonb.qty);
			if(si) // if any guns unassigned to chasers, then assign half to each broadside
			{
				refShip.Cannons.Borts.cannonl.qty = si/2;
				refShip.Cannons.Borts.cannonr.qty = si/2;
			}
		}
		// guns qty <--
		// NK/HFM -->
		modaccel = true; // NK 04-12 add
		if(CheckAttribute(refShip,"No_NK_HFM")) { continue; }
		// no need if(CheckAttribute(refShip,"No_NK_HFM_modstats")) { modstats = false; }
		if(CheckAttribute(refShip,"No_NK_HFM_modaccel")) { modaccel = false; }
		//trace("Running NK/HFM for ship " + refShip.id);
		//Log_SetStringToLog("ID: " + refShip.id + ", idx1=" + n + ", 2=" + GetShipIndex(refShip.id));
		if(modaccel) refShip.InertiaAccelerationZ = stf(refShip.InertiaAccelerationZ) / 4.0;
		if(modaccel) refShip.InertiaBrakingZ = stf(refShip.InertiaBrakingZ) / 10.0;
		if(CheckAttribute(refShip,"RigType")) sDet = refShip.RigType; // NK bugfix 05-04-10
		else sDet = GetSymbol(refShip.name, 0) + GetSymbol(refShip.name, 1) + GetSymbol(refShip.name, 2);
		// NK new section 05-04-10
		cp = ""; bp = "";
		if(CheckAttribute(refShip, "ClosestPoint")) cp = refShip.ClosestPoint;
		if(CheckAttribute(refShip, "BestPoint")) bp = refShip.BestPoint;
		if(cp == "" || bp == "")
		{
			switch(sDet)
			{
				case "Tar":
					else refShip.ClosestPoint = 0.2;
					refShip.BestPoint = 0.6;
					refShip.RigType = sDet;
				break;

				case "Bar":
					refShip.ClosestPoint = 0.375;
					refShip.BestPoint = 0.875;
					refShip.RigType = sDet;
				break;

				case "Yac":
					refShip.ClosestPoint = 0.3;
					refShip.BestPoint = 0.8;
					refShip.RigType = sDet;
				break;

				case "Lug":
					refShip.ClosestPoint = 0.225;
					refShip.BestPoint = 0.625;
					refShip.RigType = sDet;
				break;

				case "Xeb":
					refShip.RigType = sDet;
					refShip.ClosestPoint = 0.2;
					refShip.BestPoint = 0.6;
				break;

				case "Slo":
					refShip.ClosestPoint = 0.15;
					refShip.BestPoint = 0.625;
					refShip.RigType = sDet;
				break;

				case "Gal":
					sDet = strcut(refShip.name,0,5);
					if(sDet == "Galeot")
					{
						refShip.ClosestPoint = 0.25;
						refShip.BestPoint = 0.625;
						refShip.RigType = "Gat";
					}
					else
					{
						refShip.ClosestPoint = 0.375;
						refShip.BestPoint = 0.875;
						refShip.RigType = "Gal";
					}
				break;

				case "Gat": // add this 05-04-10
					refShip.ClosestPoint = 0.25;
					refShip.BestPoint = 0.625;
					refShip.RigType = "Gat";
				break;

				case "Sch":
					refShip.ClosestPoint = 0.15;
					refShip.BestPoint = 0.625;
					refShip.RigType = sDet;
				break;

				case "Car":
					refShip.ClosestPoint = 0.35; // KNB was 0.375
					refShip.BestPoint = 0.85; // KNB was 0.875
					refShip.RigType = sDet;
				break;

				case "Fle":
					refShip.ClosestPoint = 0.375;
					refShip.BestPoint = 0.875;
					refShip.RigType = sDet;
				break;

				case "Pin":
					refShip.ClosestPoint = 0.325; // as "fast galleon"
					refShip.BestPoint = 0.85;
					refShip.RigType = sDet;
				break;

				case "Bri":
					refShip.ClosestPoint = 0.3;
					refShip.BestPoint = 0.8;
					refShip.RigType = sDet;
				break;

				case "Cor":
					refShip.ClosestPoint = 0.3;
					refShip.BestPoint = 0.8;
					refShip.RigType = sDet;
				break;

				case "Fri":
					refShip.ClosestPoint = 0.3;
					refShip.BestPoint = 0.8;
					refShip.RigType = sDet;
				break;

				case "Bat":
					refShip.ClosestPoint = 0.375;
					refShip.BestPoint = 0.875;
					refShip.RigType = sDet;
				break;

				case "Man":
					refShip.ClosestPoint = 0.375;
					refShip.BestPoint = 0.875;
					refShip.RigType = sDet;
				break;

				case "Fea":
					refShip.ClosestPoint = 0.375;
					refShip.BestPoint = 0.875;
					refShip.RigType = sDet;
				break;

				case "Bla":
					refShip.ClosestPoint = 0.375;
					refShip.BestPoint = 0.875;
					refShip.RigType = sDet;
				break;

				case "Btn": // brigantine, KNB 05-04-10
					refShip.ClosestPoint = 0.25;
					refShip.BestPoint = 0.7;
					refShip.RigType = "Btn";
				break;
// KK -->
				case "1Br":
					refShip.ClosestPoint = 0.3;
					refShip.BestPoint = 0.8;
				break;
				case "2Br":
					refShip.ClosestPoint = 0.3;
					refShip.BestPoint = 0.8;
				break;
// <-- KK
				// 04-09-09 add default case
					if(!CheckAttribute(refShip, "ClosestPoint")) refShip.ClosestPoint = DEFAULT_CLOSESTPOINT;
					if(!CheckAttribute(refShip, "BestPoint")) refShip.BestPoint = DEFAULT_BESTPOINT;
					if(!CheckAttribute(refShip, "RigType")) refShip.RigType = "Fri";
				
			}
		}
		// NK new 05-04-10 to resume previous cp/bp
		if(cp != "") refShip.Closestpoint = cp;
		if(bp != "") refShip.Bestpoint = bp;
		// NK 05-04-10 <--
		// NK/HFM
	}
	//if(LogsToggle) Log_SetStringToLog("Kell-Mudd Ships Changes...");
}
