public void PickupItem(Objects obj) { // Add an if-statement here when you want to have a maximum number of items inventory.Add(obj.GetName(), obj); obj.SetIsAcquirable(false); }
public void AddItem(Objects item, int x, int y) { this.items[x, y] = item; }