Пример #1
0
        public void DressSailor(BaseCreature bc)
        {
            switch (Utility.Random(3))
            {
            case 0: bc.AddItem(new FancyShirt()); break;

            case 1: bc.AddItem(new Doublet()); break;

            case 2: bc.AddItem(new Shirt()); break;
            }

            switch (Utility.Random(4))
            {
            case 0: bc.AddItem(new Shoes()); break;

            case 1: bc.AddItem(new Boots()); break;

            case 2: bc.AddItem(new ElvenBoots()); break;

            case 3: bc.AddItem(new ThighBoots()); break;
            }

            if (bc.Female)
            {
                switch (Utility.Random(6))
                {
                case 0: bc.AddItem(new ShortPants()); break;

                case 1:
                case 2: bc.AddItem(new Kilt()); break;

                case 3:
                case 4:
                case 5: bc.AddItem(new Skirt()); break;
                }
            }
            else
            {
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new LongPants()); break;

                case 1: bc.AddItem(new ShortPants()); break;
                }
            }

            if (bc is SailorElf || bc is SailorMerchant)
            {
                bc.AddItem(new TricorneHat());
            }
            else if (Utility.RandomBool())
            {
                bc.AddItem(new SkullCap()); bc.HairItemID = 0;
            }
            else
            {
                bc.AddItem(new Bandana());
            }
            MorphingTime.SailorMyClothes(bc);
        }