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


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

namespace Server.Mobiles
{
	[CorpseName( "an yoshi corpse" )]
	public class blueyoshi : BaseMount
	{
	
	


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

			BaseSoundID = 0x270;

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

			SetHits( 80, 110 );

			SetDamage( 6, 11 );

			SetDamageType( ResistanceType.Cold, 100 );
			SetDamageType( ResistanceType.Physical, 0 );
			
			SkillsCap = 10000;
			Skills[SkillName.Magery].Cap=120;
		

			SetResistance( ResistanceType.Physical, 30, 60 );
			SetResistance( ResistanceType.Fire, 10, 30 );
			SetResistance( ResistanceType.Cold,80, 130 );
			SetResistance( ResistanceType.Energy,30, 60 );
			SetResistance( ResistanceType.Poison, 30, 60 );
						

			SetSkill( SkillName.MagicResist, 10, 25 );
			SetSkill( SkillName.Magery, 20, 60 );
			SetSkill( SkillName.EvalInt, 40, 40 );
			SetSkill( SkillName.Spellweaving, 40, 100 );
			
			SetSkill( SkillName.Tactics, 20, 30 );
			SetSkill( SkillName.Wrestling, 40, 65 );

			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.Spellweaving.Value >= 100 )
				return 1.0;

			return base.GetControlChance( m );
		}		

		public blueyoshi( 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();
		}
	}
}