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


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

namespace Server.Mobiles
{
	[CorpseName( "an yoshi corpse" )]
	public class yellowyoshi : BaseMount
	{
	
	
		public override WeaponAbility GetWeaponAbility()
		{
			switch ( Utility.Random( 3 ) )
			{
			default:	
			case 0: return WeaponAbility.DoubleStrike;
			case 1: return WeaponAbility.WhirlwindAttack;
			case 2: return WeaponAbility.CrushingBlow;
			}
		}	


		[Constructable]
		public yellowyoshi() : base(null,218, 0x3EA5, AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.13, 0.3 )
		{
			Hue = 53;
			Name="a yoshi";

			BaseSoundID = 0x270;

			SetStr( 94, 170 );
			SetDex( 56, 75 );
			SetInt( 60, 130 );

			SetHits( 80, 110 );

			SetDamage( 6, 12 );

			SetDamageType( ResistanceType.Physical, 100 );
			
			//caps
			SkillsCap = 15000;
			Skills[SkillName.Wrestling].Cap=120;
			Skills[SkillName.Tactics].Cap=120;
			Skills[SkillName.Anatomy].Cap=120;
	

			SetResistance( ResistanceType.Physical, 70, 130 );
			SetResistance( ResistanceType.Fire, 30, 60 );
			SetResistance( ResistanceType.Cold, 30, 60 );
			SetResistance( ResistanceType.Energy, 30, 60 );
			SetResistance( ResistanceType.Poison, 10, 30 );
			SetSkill( SkillName.MagicResist, 10, 25 );

			
			SetSkill( SkillName.Tactics, 100, 230 );
			SetSkill( SkillName.Wrestling, 70, 90 );

			Fame = 1200;
			Karma = 100;

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

		public override int Meat{ get{ return 3; } }
		public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies | FoodType.Meat | FoodType.GrainsAndHay | FoodType.Gold; } }
		

		
		public override double GetControlChance( Mobile m )
		{
			if ( m.Skills.Tactics.Value >= 100 && (m.Skills.Swords.Value>=100 || m.Skills.Fencing.Value>=100 || m.Skills.Macing.Value>=100))
				return 1.0;

			return base.GetControlChance( m );
		}
		

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

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

			writer.Write( (int) 0 ); // version
		}

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

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