public void SellLemonade(Player player) { while (player.pitcher.cupsLeftInPitcher > 0 && dailyCustomerNumber > 0) { Customer customer = new Customer(); customers.Add(customer); customer.CustomerSales(weather, player); if (customer.actualCupsToPurchase > player.pitcher.cupsLeftInPitcher) { customer.actualCupsToPurchase = player.pitcher.cupsLeftInPitcher; } transactionTotal = player.recipe.pricePerCup * customer.actualCupsToPurchase; dailyTotal += transactionTotal; cupTotal += customer.actualCupsToPurchase; dailyCustomerNumber--; player.pitcher.cupsLeftInPitcher -= customer.actualCupsToPurchase; } }