public int SellCups(Player player, Inventory inventory) { UserInterface.PurchaseCupsPrompt(); int response; while (!int.TryParse(Console.ReadLine(), out response) || player.CashOnHand < (cupPrice * response)) { UserInterface.InvalidCupsResponse(); } player.CashOnHand -= (cupPrice * response); inventory.CupCount += (1 * response); int moneySpentOnCups = cupPrice * response; return(moneySpentOnCups); }