using System;
using System.Collections;
using Server;
using Server.Items;

namespace Server.Mobiles
{
	public class Aminia : BaseCreature
	{		
		[Constructable]
		public Aminia() : base( AIType.AI_Melee, FightMode.None, 2, 1, 0.5, 2 )
		{			
			Name = "Aminia";
			Title = "the master weaponsmith's wife";
			Blessed = true;
			
			InitStats( 100, 100, 25 );
			
			Female = true;
			Race = Race.Human;
			
			Hue = 0x83ED;
			HairItemID = 0x203B;
			HairHue = 0x454;	
			
			AddItem( new Backpack() );
			AddItem( new Sandals( 0x75B ) );
			AddItem( new Tunic( 0x4BF ) );
			AddItem( new Skirt( 0x8FD ) );
		}
		
		public Aminia( Serial serial ) : base( serial )
		{
		}
		
		public override void OnThink()
		{
			int hours = 0;
			int minutes = 0;
		
			Clock.GetTime( Map, Location.X, Location.Y, out hours, out minutes );
			
			if ( hours == 21 )
			{
				Blessed = false;
				Body = 0x17;
			}
			else
			{
				Blessed = true;
				Body = 0x191;
			}
		}
		
		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();
		}
	}
}