/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by 
Filepath: scripts\_custom\engines\ML Peerless + misc areas\Jormundgand\Rare Drop\SerpentsThroat.cs
Lines of code: 44
***********************************************************/


using System;
using Server;

namespace Server.Items
{
	public class SerpentsThroat : LeatherGorget
	{
		public override int BasePhysicalResistance{ get{ return 10; } }
		public override int BaseFireResistance{ get{ return 35; } }
		public override int BaseColdResistance{ get{ return -10; } }
		public override int BasePoisonResistance{ get{ return 10; } }
		public override int BaseEnergyResistance{ get{ return -10; } }

		public override int InitMinHits{ get{ return 255; } }
		public override int InitMaxHits{ get{ return 255; } }

		[Constructable]
		public SerpentsThroat()
		{
		
			Name = "Serpent's Throat";
			Hue = 332;
			Attributes.BonusStr = 10;
			Attributes.BonusInt = 10;
			Attributes.CastRecovery = 2;
		}

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

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

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

			int version = reader.ReadInt();

			if ( version < 1 )
			{
				if ( Hue == 0x551 )
					Hue = 0x76D;

				ColdBonus = 0;
				EnergyBonus = 0;
			}
		}
		
		
		public override void OnAfterLoad()
		{
			Delete();
		}		
	}
}