/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Aug-08-2011 09:29:13pm
Filepath: scripts\Items\artifacts\Artifacts of Assimilation\greater\nymphsenchantedlegs.cs
Lines of code: 50

Description: 

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


using Server;
using System;

namespace Server.Items
{
	
	public class nymphsenchantedlegs : PlateLegs
	{
		public override int InitMinHits{ get{ return 255; } }
		public override int InitMaxHits{ get { return 255; } }
		
		public override int BasePhysicalResistance{ get{ return -10; } }
		public override int BaseFireResistance{ get{ return -10; } }
		public override int BaseColdResistance{ get{ return -10; } }
		public override int BasePoisonResistance{ get{ return -10; } }
		public override int BaseEnergyResistance{ get{ return -10; } }			

		[Constructable]
		public nymphsenchantedlegs() : base()
		{
		Name="Nymph's Enchanted Legs";
		Hue=2206;


		ArmorAttributes.LowerStatReq = 100;
		ArmorAttributes.MageArmor= 1;
		Attributes.DefendChance=45;
		Attributes.LowerManaCost=15;
			
		}
		

		

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

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

			writer.Write( (int) 2 );
		}
		
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			if ( version <= 1 )
			{
				MaxHitPoints = 255;
				HitPoints = 255;
			}

			if( version == 0 )
				SkillBonuses.SetValues( 0, SkillName.AnimalLore, 5.0 );
		}
		
		public override void OnAfterLoad()
		{
			Item i = Activator.CreateInstance( Misc.TreasuresOfFelucca.m_GreaterArtifacts[Utility.Random( Misc.TreasuresOfFelucca.m_GreaterArtifacts.Length )] ) as Item;			
			
			
			Misc.ObjectConverter.ConvertItem(this,i);
		}			
	}
	
}