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

namespace Server.Mobiles
{
	[CorpseName( "a giant crab corpse" )]
	public class Lobstran : BaseCreature
	{
		[Constructable]
		public Lobstran() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "a lobstran";
			Body = 269;
			BaseSoundID = 0x39D;
			CanSwim = true;

			SetStr( 176, 205 );
			SetDex( 46, 65 );
			SetInt( 46, 70 );

			SetHits( 106, 123 );

			SetDamage( 8, 14 );

			SetSkill( SkillName.MagicResist, 45.1, 60.0 );
			SetSkill( SkillName.Tactics, 50.1, 70.0 );
			SetSkill( SkillName.HandToHand, 50.1, 70.0 );

			Fame = 3500;
			Karma = -3500;

			VirtualArmor = 40;

			PackItem( new Fish( ( Utility.Random( 3 )+1) ) );
		}

		public override bool BleedImmune{ get{ return true; } }
		public override int Meat{ get{ return 3; } }
		public override MeatType MeatType{ get{ return MeatType.Fish; } }

		public override void GenerateLoot()
		{
			AddLoot( LootPack.Average );
		}

		public Lobstran( 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();
			Body = 34;
		}
	}
}