While working on an auto-equipping plugin, I've found some erratic behavior on getting stats on the orange gear.
I use:
foreach (TorItem item in BuddyTor.Me.InventoryEquipment)
{
Dictionary<ModStat, float> stats = item.GetItemStats(true);
//Do stuff with item stats here
}
But it never gets to the "do stuff" section. It seems to exit out without throwing errors, even with a try/catch on it. On one orange item I had, it actually did complete, but it only showed the base stats. I'm not sure if there any that actually successfully pull the stats. I would need to get more orange items to test with.
If I remove the orange items, it runs through the entire list successfully. If I set it to false: "GetItemStats(false)", it runs successfully, but of course only grabs the orange items' base stats.
I use:
foreach (TorItem item in BuddyTor.Me.InventoryEquipment)
{
Dictionary<ModStat, float> stats = item.GetItemStats(true);
//Do stuff with item stats here
}
But it never gets to the "do stuff" section. It seems to exit out without throwing errors, even with a try/catch on it. On one orange item I had, it actually did complete, but it only showed the base stats. I'm not sure if there any that actually successfully pull the stats. I would need to get more orange items to test with.
If I remove the orange items, it runs through the entire list successfully. If I set it to false: "GetItemStats(false)", it runs successfully, but of course only grabs the orange items' base stats.