using System.Collections.Generic;
static List<string> inventory = new List<string> {"Sword", "Healing Potion", "Bow"};
public static void Main()
Console.WriteLine("Do you want to add this item to your inventory? y/n: ");
char input = Console.ReadKey().KeyChar;
if (input == 'y' || input == 'Y')
Console.WriteLine("\n.Item added to inventory");
Console.WriteLine("\n.You leave the item");