/**********************************************************
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\shimering effusion\mobiles\UnfrozenMummy.cs
Lines of code: 85
***********************************************************/


using System;
using System.Collections;
using Server.Items;
using Server.Targeting;

namespace Server.Mobiles
{
	[CorpseName( "an unfrozen mummy corpse" )]
	public class UnfrozenMummy : BaseCreature
	{
		[Constructable]
		public UnfrozenMummy() : base( AIType.AI_Super, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "an unfrozen mummy";
			Body = 155;
			Hue = 1152; 
			BaseSoundID = 471;

			SetStr( 458, 493 );
			SetDex( 202, 250 );
			SetInt( 801, 849 );

			SetHits( 1500 );
			SetStam( 150 );
			SetMana( 801, 849 );

			SetDamage( 30, 60 );

			SetDamageType( ResistanceType.Physical, 0 );
			SetDamageType( ResistanceType.Cold, 50 );
			SetDamageType( ResistanceType.Energy, 50 );

			SetResistance( ResistanceType.Physical, 36, 40 );
			SetResistance( ResistanceType.Fire, 22, 29 );
			SetResistance( ResistanceType.Cold, 60, 78 );
			SetResistance( ResistanceType.Poison, 20, 30 );
			SetResistance( ResistanceType.Energy, 69, 78 );

			SetSkill( SkillName.Magery, 51.0, 57.3 );
			SetSkill( SkillName.EvalInt, 52.8, 59.5 );
			SetSkill( SkillName.Meditation, 80.1, 80.8 );
			SetSkill( SkillName.MagicResist, 250.0 );
			SetSkill( SkillName.Tactics, 100.0 );
			SetSkill( SkillName.Wrestling, 90.7, 96.0 );

			Fame = 12500;
			Karma = -6000;

			VirtualArmor = 40;
		}

		public override void GenerateLoot()
		{
		AddLoot( LootPack.FilthyRich, 2 );  
		AddLoot( LootPack.Rich, 2 );
		}

		public override bool BleedImmune{ get{ return true; } }
		public override Poison PoisonImmune{ get{ return Poison.Greater; } }
		public override int TreasureMapLevel{ get{ return 5; } }
		public override bool Uncalmable{ get{ return true; } }
		public override bool IsMLCreature { get { return true;} }
		public override int SuperAI_Intensity{ get{ return 20; } }

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

		public override OppositionGroup OppositionGroup
		{
			get{ return OppositionGroup.FeyAndUndead; }
		}
		
		public override void OnDeath( Container c )
		{
			if ( Utility.Random( 10 ) == 0 )
			{		
				Item item;

				switch ( Utility.Random( 1 ))
				{
					default:
					case 1: item = new brokencrystals(); break;
				}

				c.DropItem( item );
			}

			base.OnDeath( c );
		}

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