示例#1
0
        public void PurchaseItems(string item, int quant, double price, Player player, Day day, List <Day> days)
        {
            bool didBuy = player.wallet.CheckWallet(price);

            if (didBuy == true)
            {
                UserInterface.ConfirmPurchase(item, quant, price, player);
                player.inventory.AddItemsToInventory(quant, item);
                UserInterface.PlayerInfoDisplay(player, day, days);
                GoToTheStore(player, day, days);
            }
            else
            {
                UserInterface.NotEnoughMoney();
            }
        }