Exemple #1
0
        public void BuyLemons()
        {
            int    numberOfLemons = NumberOfLemonsNeeded();
            Lemons lemons         = new Lemons();

            enoughMoney = player.CheckIfEnoughMoney(numberOfLemons, lemons.LemonCost);
            if (enoughMoney == true)
            {
                player.GenerateLemons(numberOfLemons);
                PurchaseLemons      = (numberOfLemons) * lemons.LemonCost;
                player.wallet.money = player.wallet.money - PurchaseLemons;
            }
            player.DisplayInventory();
            PurchaseInventory();
        }