using Server.Engines.Harvest;

namespace Server.Items
{
    public class SturdyPickaxe : BaseAxe, IUsesRemaining
    {
        [Constructible]
        public SturdyPickaxe(int uses = 180) : base(0xE86)
        {
            Weight = 11.0;
            Hue = 0x973;
            UsesRemaining = uses;
            ShowUsesRemaining = true;
        }

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

        public override int LabelNumber => 1045126; // sturdy pickaxe
        public override HarvestSystem HarvestSystem => Mining.System;

        public override WeaponAbility PrimaryAbility => WeaponAbility.DoubleStrike;
        public override WeaponAbility SecondaryAbility => WeaponAbility.Disarm;

        public override int AosStrengthReq => 50;
        public override int AosMinDamage => 13;
        public override int AosMaxDamage => 15;
        public override int AosSpeed => 35;
        public override float MlSpeed => 3.00f;

        public override int OldStrengthReq => 25;
        public override int OldMinDamage => 1;
        public override int OldMaxDamage => 15;
        public override int OldSpeed => 35;

        public override WeaponAnimation DefAnimation => WeaponAnimation.Slash1H;

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

            writer.Write(0); // version
        }

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

            var version = reader.ReadInt();
        }
    }
}
