/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Aug-08-2011 09:29:14pm
Filepath: scripts\Items\artifacts\champion spawns\SashOfTheSleepingDragon.cs
Lines of code: 42

Description: 

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


using System;
using Server;

namespace Server.Items
{
	public class SashOfTheSleepingDragon : BodySash
	{

		[Constructable]
		public SashOfTheSleepingDragon()
		{
			Name = "Sash of the sleeping dragon";
			Hue = 447;
			
			
			switch(Utility.Random(2))
			{
				case 0:SkillBonuses.SetValues( 0, SkillName.Bushido, 10.0 );break;
				case 1:SkillBonuses.SetValues( 0, SkillName.Ninjitsu, 10.0 );break;
			}			
			
			
			Attributes.RegenStam=2;	
			Attributes.Luck=100;
		}


		public SashOfTheSleepingDragon( 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.Bushido, 10.0 );
				SkillBonuses.SetValues( 1, SkillName.Ninjitsu, 0 );				
				Resistances.Poison = 0;
				Attributes.RegenStam=2;
				Attributes.Luck=100;
			}


		}
	}
}