I noticed that the value calculation wasn't taking item modifiers (like "fine" or "tattered") into account, and it was sometimes choosing the wrong equipment because of that. I think this update will fix that. I had to discover the ItemModifer methods by trial & error since I haven't found any API documentation for items, but I've been testing this and it appears to work correctly.
Please feel free to merge, borrow from, or ignore this as you prefer. I'd also welcome comments on my C#; I'm a longtime developer but haven't worked with C# before.
Hi Aleksey,
Thanks for the great mod!
I noticed that the value calculation wasn't taking item modifiers (like "fine" or "tattered") into account, and it was sometimes choosing the wrong equipment because of that. I think this update will fix that. I had to discover the
ItemModifer
methods by trial & error since I haven't found any API documentation for items, but I've been testing this and it appears to work correctly.Please feel free to merge, borrow from, or ignore this as you prefer. I'd also welcome comments on my C#; I'm a longtime developer but haven't worked with C# before.