What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Equipment Category Mismatch?

Neverdyne

Community Developer
Joined
Sep 12, 2014
Messages
649
I've been using this to get eligible items to be equipped for a certain category:

Code:
InventoryManager.FilledInventoryAndArmory
   .Where(s => s.Item != null)
   .Where(s => s.Item.EquipmentSlots.CanTake.Contains(EquipmentSlot.Earring));

This works for every slot category except necklaces and earrings, which seem to be mismatched. By running in the console:

Code:
var prospects = InventoryManager.FilledInventoryAndArmory
   .Where(s => s.Item.EquipmentSlots.CanTake.Contains(EquipmentSlot.Necklace));

Log("-----");
foreach (var p in prospects) 
{ 
   Log(p.Name + " Slot: " + p.Slot);
   foreach (var c in p.Item.EquipmentSlots.CanTake) 
   {
      Log(c); 
   }
}

It displays all my earrings. While doing it for EquipmentSlot.Earring displays all my necklaces. They seem to be crossed. For example, the above code shows:

Code:
Storm Sergeant's Earrings Slot: 0
Necklace
Ruby Earring Slot: 1
Necklace
Mosshorn Earrings Slot: 2
Necklace
 
Last edited:
Back
Top