Exemplo n.º 1
0
 public bool AddItem(Item item)
 {
     if (EmptyItemSlots.Contains(item.ItemType))
     {
         if (item.ItemType == "OneHandWeapons")
         {
             EmptyItemSlots.Remove("TwoHandWeapons");
         }
         else if (item.ItemType == "TwoHandWeapons")
         {
             EmptyItemSlots.Remove("OneHandWeapons");
             EmptyItemSlots.Remove("OneHandWeapons");
         }
         if (item.ilvl <= 74)
         {
             this.HasChaos = true;
         }
         EmptyItemSlots.Remove(item.ItemType);
         ItemList.Add(item);
         CurrentPosition[0] = item.x;
         CurrentPosition[1] = item.y;
         CurrentPosition[2] = item.StashTabIndex;
         //CurrentPosition = new List<int> { item.x, item.y, item.StashTabIndex };
         return(true);
     }
     return(false);
 }