/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by 
Filepath: scripts\_custom\mobiles\rabidsquirrel.cs
Lines of code: 110
***********************************************************/


using System;
using Server.Mobiles;
using Server.Items;

namespace Server.Mobiles
{
	[CorpseName( "a rabid squirrel corpse" )]
	[TypeAlias( "Server.Mobiles.rabidsquirrel" )]
	public class rabidsquirrel : BaseCreature
	{

		public override WeaponAbility GetWeaponAbility()
		{
			switch ( Utility.Random( 4 ) )
			{
			default:				
			case 0: return WeaponAbility.BleedAttack;
			case 1: return WeaponAbility.ParalyzingBlow;
			case 2: return WeaponAbility.MortalStrike;
			case 3: return WeaponAbility.BleedAttack;
			}
		}	
	
		[Constructable]
		public rabidsquirrel() : base( AIType.AI_Super, FightMode.Closest, 10, 1, 0.10, 0.16 )
		{
		
		
			Name = "a rabid squirrel";
			Body = 278;
			BaseSoundID = 0x188;
			
			switch (Utility.Random(16))
			{
			case 0: Hue = 1;break;
			case 1: Hue = 1152;break;	
			case 2: Hue = 1155;break;	
			case 3: Hue = 1156;break;	
			case 4: Hue = 1157;break;	
			case 5: Hue = 1158;break;	
			case 6: Hue = 1159;break;	
			case 7: Hue = 1160;break;	
			case 8: Hue = 1161;break;	
			case 9: Hue = 1162;break;	
			case 10: Hue = 1165;break;	
			case 11: Hue = 1166;break;	
			case 12: Hue = 1167;break;	
			case 13: Hue = 1171;break;	
			case 14: Hue = 1200;break;	
			case 15: Hue = 1300;break;	
			case 16: Hue = 1471;break;	
			case 17: Hue = 1571;break;	
			case 18: Hue = 2412;break;
			}
			
			
			

			SetStr( 130, 150 );
			SetDex( 346, 565 );
			SetInt( 226, 330 );

			SetHits( 52, 147 );
			SetMana( 230, 460 );

			SetDamage( 6, 10 );

			SetDamageType( ResistanceType.Physical, 20 );
			SetDamageType( ResistanceType.Poison, 80 );
			
			//caps
			SkillsCap = 8000;
			Skills[SkillName.Wrestling].Cap=100+Utility.Random(20);
			Skills[SkillName.Tactics].Cap=100+Utility.Random(20);
			Skills[SkillName.Anatomy].Cap=100+Utility.Random(20);
			Skills[SkillName.Poisoning].Cap=120+Utility.Random(200);
			Skills[SkillName.EvalInt].Cap=100+Utility.Random(20);		
			
			
			//default resists
			SetResistance( ResistanceType.Physical, 20, 40 );
			SetResistance( ResistanceType.Fire, 20, 40 );
			SetResistance( ResistanceType.Cold, 70, 60 );
			SetResistance( ResistanceType.Poison, 70, 150 );
			SetResistance( ResistanceType.Energy, 70, 60 );
			
			//default skills
			SetSkill( SkillName.MagicResist, 85.1, 90.0 );
			SetSkill( SkillName.Tactics, 69.3, 94.0 );
			SetSkill( SkillName.Wrestling, 79.3, 94.0 );
			SetSkill( SkillName.Magery, 5, 15 );
			SetSkill( SkillName.EvalInt, 10, 50 );
			SetSkill( SkillName.Poisoning, 90.3, 144.0 );
			

			Fame = 7000;
			Karma = -150;

			VirtualArmor = 18;
			
		
			if(Utility.Random(5)==3)PackItem( new DeadlyPoisonPotion() );
			else PackItem( new GreaterPoisonPotion() );

			Tamable = true;
			ControlSlots = 2;
			MinTameSkill = 94.6;
		}

		public override void GenerateLoot()
		{
			AddLoot( LootPack.Rich,3 );
			AddLoot( LootPack.Gems, 7 );
		}

		public override Poison HitPoison{ get{ return Poison.Lethal; } }
		public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
		public override int SuperAI_DelayMax{ get{ return 1; } }
		public override int SuperAI_Intensity{ get{ return 140; } }	
		
		public override int Meat{ get{ return 2; } }
		public override int Hides{ get{ return 6; } }
		public override FoodType FavoriteFood{ get{ return FoodType.Fish | FoodType.Meat | FoodType.FruitsAndVegies | FoodType.Eggs; } }

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

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

			writer.Write((int) 0);
		}

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();
			
			SkillsCap = 8000;
		}
	}
}