Пример #1
0
        public int GetStackedCount(StackedLoot loot)
        {
            var stackedItem = GetStackedItem(loot);

            if (stackedItem != null)
            {
                return(stackedItem.Count);
            }

            return(0);
        }
Пример #2
0
        public virtual void SetStackCount(StackedLoot loot, int count)
        {
            var stackedItem = GetStackedItem(loot);

            if (stackedItem == null)
            {
                Items.Add(loot);
                stackedItem = loot;
            }
            stackedItem.Count = count;
        }