using System;
using System.Collections;
using Server.Items;
using Server.ContextMenus;
using Server.Misc;
using Server.Network;

namespace Server.Mobiles 
{
	public class HireSailor : BaseHire 
	{
		[Constructable] 
		public HireSailor()
		{
			SpeechHue = Utility.RandomDyedHue();
			Hue = Utility.RandomSkinHue();

			if ( this.Female = Utility.RandomBool() ) 
			{
				Body = 0x191;
				Name = NameList.RandomName( "female" );
			  	AddItem( new ShortPants( Utility.RandomNeutralHue() ) );
			}
			else
			{
				Body = 0x190;
				Name = NameList.RandomName( "male" );
				AddItem( new ShortPants( Utility.RandomNeutralHue() ) );
			}
			Title = "the sailor";
			HairItemID = Race.RandomHair( Female );
			HairHue = Race.RandomHairHue();
			Race.RandomFacialHair( this );

			SetStr( 86 );
			SetDex( 66 );
			SetInt( 41 );

			SetDamage( 10, 23 );

			SetSkill( SkillName.Stealing, 66.0, 97.5 );
			SetSkill( SkillName.Peacemaking, 65.0, 87.5 );
			SetSkill( SkillName.MagicResist, 25.0, 47.5 );
			SetSkill( SkillName.Healing, 65.0, 87.5 );
			SetSkill( SkillName.Tactics, 65.0, 87.5 );
			SetSkill( SkillName.Fencing, 65.0, 87.5 );
			SetSkill( SkillName.Parry, 45.0, 60.5 );
			SetSkill( SkillName.Lockpicking, 65, 87 );
			SetSkill( SkillName.Hiding, 65, 87 );
			SetSkill( SkillName.Snooping, 65, 87 );	
			Fame = 100;
			Karma = 0;

			AddItem( new Shoes( Utility.RandomNeutralHue() ) );
			AddItem( new Cutlass() );
		
			switch ( Utility.Random( 2 ) )
			{
				case 0: AddItem( new Doublet( Utility.RandomDyedHue() ) );break;
				case 1: AddItem( new Shirt( Utility.RandomDyedHue() ) );break;
			}

			PackGold( 0, 25 );
		}
		public override bool ClickTitle{get{return false;}}
		public HireSailor( Serial serial ) : base( serial ) 
		{
		}

		public override void Serialize( GenericWriter writer ) 
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );// version 
		}

		public override void Deserialize( GenericReader reader ) 
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}
