namespace Server.Items
{
    public class Tambourine : BaseInstrument
    {
        [Constructible]
        public Tambourine() : base(0xE9D, 0x52, 0x53) => Weight = 1.0;

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

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

            if (Weight == 2.0)
            {
                Weight = 1.0;
            }
        }
    }
}
