Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Related in langs
Frequently Used Methods
public bool AddItem(string id, int count = 1) { foreach (var slot in Slots.Values) { if (slot.ItemID == id) { if (slot.AddItem(count)) { return(true); } } } foreach (var slot in Slots.Values) { if (slot.IsEmpty) { slot.SetItem(ItemSpawner.GetItem(id), count); return(true); } } return(false); }