示例#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;
        }