using Server.Items;
using Server.Mobiles;

namespace Server.Engines.Quests.Samurai
{
    public class YoungNinja : BaseCreature
    {
        [Constructible]
        public YoungNinja() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            InitStats(45, 30, 5);
            SetHits(20, 30);

            Hue = Race.Human.RandomSkinHue();
            Body = 0x190;

            Utility.AssignRandomHair(this);
            Utility.AssignRandomFacialHair(this);

            AddItem(new NinjaTabi());
            AddItem(new LeatherNinjaPants());
            AddItem(new LeatherNinjaJacket());
            AddItem(new LeatherNinjaBelt());

            AddItem(new Bandana(Utility.RandomNondyedHue()));

            AddItem(
                Utility.Random(3) switch
                {
                    0 => new Tessen(),
                    1 => new Kama(),
                    _ => new Lajatang()
                }
            );

            SetSkill(SkillName.Swords, 50.0);
            SetSkill(SkillName.Tactics, 50.0);
        }

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

        public override string CorpseName => "a young ninja's corpse";
        public override string DefaultName => "a young ninja";

        public override bool AlwaysMurderer => true;

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

            writer.WriteEncodedInt(0); // version
        }

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

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