/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Sep-24-2011 10:26:42pm
Filepath: scripts\Items\Artifacts\Artifacts of Assimilation\greater\charmofthedomesticator.cs
Lines of code: 40

Description: 

***********************************************************/


using Server;
using System;

namespace Server.Items
{
	
	public class charmofthedomesticator : GoldBracelet
	{
	
		[Constructable]
		public charmofthedomesticator() : base()
		{
			Name="Charm of the Domesticator";
			Hue=2006;
			
			
			Attributes.CastSpeed=1;
			Attributes.CastRecovery=2;
			Attributes.Luck=150;			
			
			SkillBonuses.SetValues( 0, SkillName.AnimalTaming, 20 );
			SkillBonuses.SetValues( 1, SkillName.AnimalLore, 20 );
			SkillBonuses.SetValues( 2, SkillName.Veterinary, 20 );
		}
		

		

		public charmofthedomesticator( Serial serial ) : base( serial )
		{
		}

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

			writer.Write( (int) 3 );
		}
		
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			
			
			if(version<=2)
			{
				SkillBonuses.SetValues( 0, SkillName.AnimalTaming, 20 );
				SkillBonuses.SetValues( 1, SkillName.AnimalLore, 20 );
				SkillBonuses.SetValues( 2, SkillName.Veterinary, 20 );
				Attributes.Luck=150;			
			}
		}
	}
	
}
