public int GetStackedCount(StackedLoot loot) { var stackedItem = GetStackedItem(loot); if (stackedItem != null) { return(stackedItem.Count); } return(0); }
public virtual void SetStackCount(StackedLoot loot, int count) { var stackedItem = GetStackedItem(loot); if (stackedItem == null) { Items.Add(loot); stackedItem = loot; } stackedItem.Count = count; }