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

Equipment Category Mismatch?

Neverdyne

Community Developer
Joined
Sep 12, 2014
Messages
650
Reaction score
20
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:
Thanks, fixed for next version.
 
Back
Top