Пример #1
0
        public bool Undress(IWear stuff, Wardrobe location, int count = 1)
        {
            switch (stuff.WearSlot)
            {
            case 1:
                player.Hat = null;
                break;

            case 2:
                player.TopDress = null;
                break;

            case 3:
                player.BottomDress = null;
                break;

            case 4:
                player.Shoes = null;
                break;

            case 5:
                player.Stockings = null;
                break;

            case 6:
                player.Coat = null;
                break;

            case 7:
                player.Bra = null;
                break;

            case 8:
                player.Panties = null;
                break;

            case 9:
                /*
                 * if (player.Things["SmallBag"].Count > 0)
                 * {
                 *  return false;
                 * }*/
                player.SmallBag = null;
                break;

            case 10:
                /*
                 * if (player.Things["Bag"].Count > 0)
                 * {
                 *  return false;
                 * }
                 */
                player.Bag = null;
                break;

            default:
                return(false);
            }
            location.MoveStuff(stuff, count);
            return(true);
        }
Пример #2
0
        public bool WearToMe(IWear stuff, Wardrobe location)
        {
            IStuff st = location.GetStaff(stuff);

            switch (stuff.WearSlot)
            {
            case 1:
                if (player.Hat != null)
                {
                    location.MoveStuff(player.Hat, 1);
                    player.Hat = null;
                }
                break;

            case 2:
                if (stuff.ConflictSlot == 3 && player.BottomDress != null)
                {
                    return(false);
                }
                if (player.TopDress != null)
                {
                    location.MoveStuff(player.TopDress, 1);
                    player.TopDress = null;
                }
                break;

            case 3:
                if (stuff.ConflictSlot == 2 && player.TopDress != null && player.TopDress.ConflictSlot == 3)
                {
                    return(false);
                }
                if (player.BottomDress != null)
                {
                    location.MoveStuff(player.BottomDress, 1);
                    player.BottomDress = null;
                }
                break;

            case 4:
                if (player.Shoes != null)
                {
                    location.MoveStuff(player.Shoes, 1);
                    player.Shoes = null;
                }
                break;

            case 5:
                if (player.Stockings != null)
                {
                    location.MoveStuff(player.Stockings, 1);
                    player.Stockings = null;
                }
                break;

            case 6:
                if (player.Coat != null)
                {
                    location.MoveStuff(player.Coat, 1);
                    player.Coat = null;
                }
                break;

            case 7:
                if (player.Bra != null)
                {
                    location.MoveStuff(player.Bra, 1);
                    player.Bra = null;
                }
                break;

            case 8:
                if (player.Panties != null)
                {
                    location.MoveStuff(player.Panties, 1);
                    player.Panties = null;
                }
                break;

            case 9:
                if (player.SmallBag != null)
                {
                    location.MoveStuff(player.SmallBag, 1);
                    player.SmallBag = null;
                }
                break;

            case 10:
                if (player.Bag != null)
                {
                    location.MoveStuff(player.Bag, 1);
                    player.Bag = null;
                }
                break;
            }
            if (player.WearStuff(stuff))
            {
                location.RemoveStaff(stuff, 1);
                return(true);
            }
            return(false);
        }