public bool Add(ItemDrop add) { InventoryItem item = add.GetInventoryItem(); for (int i = 0; i < Items.Length; i++) { if (Items[i].Equals(item)) // Inventory Items are compared by name, desc, and textures { Items[i].Amount += add.Amount; item = null; return(true); } } for (int i = 0; i < Items.Length; i++) { if (Items[i] == null) { Items[i] = item; return(true); } } return(false); }