public void DropItem(string item) { var chosenItem = Bag.Get(item); if (chosenItem == null) { Console.WriteLine("You don't have this item."); } else { Bag.Remove(chosenItem); CurrentLocation.AddItem(chosenItem); Bag.Show(); } }
public void DropItem(string item) { var chosenItem = Bag.Get(item); if (chosenItem == null) { Console.WriteLine("You don't have this item."); } else { Bag.Remove(chosenItem); CurrentLocation.AddItem(chosenItem); Bag.Show(); } }