Exemplo n.º 1
0
        private string GetCount(int i)
        {
            if (inventoryItemCountDisplay == InventoryItemCountDisplay.Never)
            {
                return(string.Empty);
            }

            InvInstance invInstance = GetInstance(i);

            if (InvInstance.IsValid(invInstance))
            {
                if (invInstance.Count < 2 && inventoryItemCountDisplay == InventoryItemCountDisplay.OnlyIfMultiple)
                {
                    return(string.Empty);
                }

                if (ItemIsSelected(i))
                {
                    return(invInstance.GetInventoryDisplayCount().ToString());
                }
                return(invInstance.Count.ToString());
            }
            return(string.Empty);
        }