public static void ShopProduct(string item, Product product, Player player) { int quanity; if (product.Unit == "each") { quanity = int.Parse(GetInput($"How many {product.Name}s would you like?", "integer greater than 0")); } else { quanity = int.Parse(GetInput($"How many {product.Unit}s of {product.Name} would you like?", "integer greater than 0")); } player.AdjustInventory(product.Name, quanity); player.ProcessBankTransaction(product.Price * quanity * -1); }