using System;

namespace Server.Items
{
    public class GlovesOfFeudalGrip : DragonGloves
    {
        public override int LabelNumber { get { return 1157349; } } // gloves of feudal grip
        public override bool IsArtifact { get { return true; } }

        [Constructable]
        public GlovesOfFeudalGrip()
        {
            Resource = CraftResource.None;

            Attributes.BonusStr = 8;
            Attributes.BonusStam = 8;
            Attributes.RegenHits = 3;
            Attributes.RegenMana = 3;
            Attributes.WeaponDamage = 30;
        }

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

        public override int BasePhysicalResistance { get { return 15; } }
        public override int BaseFireResistance { get { return 15; } }
        public override int BaseColdResistance { get { return 15; } }
        public override int BasePoisonResistance { get { return 15; } }
        public override int BaseEnergyResistance { get { return 15; } }        
        public override int InitMinHits { get { return 255; } }
        public override int InitMaxHits { get { return 255; } }
        public override CraftResource DefaultResource { get { return CraftResource.None; } }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.WriteEncodedInt(1); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            if (version == 0)
            {
                Resource = CraftResource.None;
            }
        }
    }

    public class GargishKiltOfFeudalVise : GargishPlateKilt
    {
        public override int LabelNumber { get { return 1157367; } } // Kilt of Feudal Vise
        public override bool IsArtifact { get { return true; } }

        [Constructable]
        public GargishKiltOfFeudalVise()
        {
            Resource = CraftResource.None;

            Attributes.BonusStr = 8;
            Attributes.BonusStam = 8;
            Attributes.RegenHits = 3;
            Attributes.RegenMana = 3;
            Attributes.WeaponDamage = 30;
        }

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

        public override int BasePhysicalResistance { get { return 15; } }
        public override int BaseFireResistance { get { return 15; } }
        public override int BaseColdResistance { get { return 15; } }
        public override int BasePoisonResistance { get { return 15; } }
        public override int BaseEnergyResistance { get { return 15; } }
        public override int InitMinHits { get { return 255; } }
        public override int InitMaxHits { get { return 255; } }
        public override CraftResource DefaultResource { get { return CraftResource.None; } }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.WriteEncodedInt(1); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            if (version == 0)
            {
                Resource = CraftResource.None;
            }
        }
    }
}