using System;
using Server.Mobiles;

namespace Server.Items
{
    public class FerretImprisonedInCrystal : BaseImprisonedMobile
    {
        [Constructable]
        public FerretImprisonedInCrystal()
            : base(0x1F19)
        {
            this.Name = "a ferret imprisoned in a crystal";
            this.Weight = 1.0;
        }

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

        public override BaseCreature Summon
        {
            get
            {
                return new ShimmeringFerret();
            }
        }
        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();
        }
    }
}

namespace Server.Mobiles
{
    public class ShimmeringFerret : Ferret
    { 
        [Constructable]
        public ShimmeringFerret()
            : base()
        {
            this.SetSkill(SkillName.MagicResist, 100.0);
            this.SetSkill(SkillName.Tactics, 100.0);
            this.SetSkill(SkillName.Wrestling, 100.0);
        }

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

        public override bool DeleteOnRelease
        {
            get
            {
                return true;
            }
        }
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);
			
            list.Add(1049646); // (summoned)
        }

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