using Server.Items;

namespace Server.Mobiles
{
    [CorpseName("a Saurosaurus corpse")]
    public class Saurosaurus : BaseCreature
    {
        public override WeaponAbility GetWeaponAbility()
        {
            return WeaponAbility.BleedAttack;
        }

        [Constructable]
        public Saurosaurus()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "a saurosaurus";
            Body = 1291;

            SetStr(802, 824);
            SetDex(201, 220);
            SetInt(403, 440);

            SetHits(1321, 1468);

            SetDamage(21, 28);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 77, 83);
            SetResistance(ResistanceType.Fire, 80, 90);
            SetResistance(ResistanceType.Cold, 46, 53);
            SetResistance(ResistanceType.Poison, 37, 45);
            SetResistance(ResistanceType.Energy, 45, 55);

            SetSkill(SkillName.Wrestling, 113.2, 129.6);
            SetSkill(SkillName.Tactics, 111.9, 119.3);
            SetSkill(SkillName.MagicResist, 75.1, 89.5);
            SetSkill(SkillName.Anatomy, 55.3, 59.2);

            Fame = 11000;
            Karma = -11000;
        }

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

        public override int Hides { get { return 11; } }
        public override HideType HideType { get { return HideType.Regular; } }
        public override FoodType FavoriteFood { get { return FoodType.Meat; } }
        public override int Meat { get { return 5; } }
        public override int DragonBlood { get { return 8; } }

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

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

            if (this.BaseSoundID == 357)
                this.BaseSoundID = 0x451;
        }
    }
}