예제 #1
0
 private static void FillItemSetsInfluenced()
 {
     foreach (StashTab tab in StashTabList.StashTabs)
     {
         foreach (Item i in tab.ItemListShaper)
         {
             if (ItemSetShaper.EmptyItemSlots.Count == 0)
             {
                 break;
             }
             ItemSetShaper.AddItem(i);
         }
         foreach (Item i in tab.ItemListElder)
         {
             if (ItemSetElder.EmptyItemSlots.Count == 0)
             {
                 break;
             }
             ItemSetElder.AddItem(i);
         }
         foreach (Item i in tab.ItemListCrusader)
         {
             if (ItemSetCrusader.EmptyItemSlots.Count == 0)
             {
                 break;
             }
             ItemSetCrusader.AddItem(i);
         }
         foreach (Item i in tab.ItemListWarlord)
         {
             if (ItemSetWarlord.EmptyItemSlots.Count == 0)
             {
                 break;
             }
             ItemSetWarlord.AddItem(i);
         }
         foreach (Item i in tab.ItemListRedeemer)
         {
             if (ItemSetRedeemer.EmptyItemSlots.Count == 0)
             {
                 break;
             }
             ItemSetRedeemer.AddItem(i);
         }
         foreach (Item i in tab.ItemListHunter)
         {
             if (ItemSetHunter.EmptyItemSlots.Count == 0)
             {
                 break;
             }
             ItemSetHunter.AddItem(i);
         }
     }
 }
예제 #2
0
 public static void PrepareSelling()
 {
     //ClearAllItemOrderLists();
     ItemSetListHighlight.Clear();
     if (ApiAdapter.IsFetching)
     {
         return;
     }
     if (ItemSetList == null)
     {
         return;
     }
     //Trace.WriteLine(StashTabList.StashTabs.Count, "stashtab count");
     foreach (StashTab s in StashTabList.StashTabs)
     {
         s.PrepareOverlayList();
     }
     foreach (ItemSet itemSet in ItemSetList)
     {
         itemSet.OrderItems();
         //GlobalItemOrderList.AddRange(itemSet.ItemList);
     }
     if (Properties.Settings.Default.ExaltedRecipe)
     {
         ItemSetShaper.OrderItems();
         ItemSetElder.OrderItems();
         ItemSetWarlord.OrderItems();
         ItemSetCrusader.OrderItems();
         ItemSetHunter.OrderItems();
         ItemSetRedeemer.OrderItems();
         if (ItemSetShaper.EmptyItemSlots.Count == 0)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(ItemSetShaper.ItemList),
                 EmptyItemSlots = new List <string>(ItemSetShaper.EmptyItemSlots)
             });
         }
         if (ItemSetElder.EmptyItemSlots.Count == 0)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(ItemSetElder.ItemList),
                 EmptyItemSlots = new List <string>(ItemSetElder.EmptyItemSlots)
             });
         }
         if (ItemSetCrusader.EmptyItemSlots.Count == 0)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(ItemSetCrusader.ItemList),
                 EmptyItemSlots = new List <string>(ItemSetCrusader.EmptyItemSlots)
             });
         }
         if (ItemSetHunter.EmptyItemSlots.Count == 0)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(ItemSetHunter.ItemList),
                 EmptyItemSlots = new List <string>(ItemSetHunter.EmptyItemSlots)
             });
         }
         if (ItemSetWarlord.EmptyItemSlots.Count == 0)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(ItemSetWarlord.ItemList),
                 EmptyItemSlots = new List <string>(ItemSetWarlord.EmptyItemSlots)
             });
         }
         if (ItemSetRedeemer.EmptyItemSlots.Count == 0)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(ItemSetRedeemer.ItemList),
                 EmptyItemSlots = new List <string>(ItemSetRedeemer.EmptyItemSlots)
             });
         }
     }
     //ItemSetListHighlight = new List<ItemSet>(ItemSetList);
     foreach (ItemSet set in ItemSetList)
     {
         if (set.HasChaos)
         {
             ItemSetListHighlight.Add(new ItemSet
             {
                 ItemList       = new List <Item>(set.ItemList),
                 EmptyItemSlots = new List <string>(set.EmptyItemSlots)
             });
         }
     }
 }