Hello
I'm becoming mad trying to figure if i can equip a item or not.
I iterate all item and gems in that item and check stast with my logic.
The problem is that all gems socketed in items have Required Int Dex Str Level 0, and the Item that hold them Requirement, do not count Gem Requirement.
Should i hardcode all gems require?? or is this a bug?
Pls help if you can
/hat
I'm becoming mad trying to figure if i can equip a item or not.
I iterate all item and gems in that item and check stast with my logic.
The problem is that all gems socketed in items have Required Int Dex Str Level 0, and the Item that hold them Requirement, do not count Gem Requirement.
Should i hardcode all gems require?? or is this a bug?
Code:
if (item.SocketCount > 0)
{
var sockitem = item as SocketableItem;
foreach (var gem in sockitem.SocketedGems)
{
if (gem != null)
{
if (gem.RequiredStr > (meS - itS + itemtoeqS)) // <------- gem.RequiredStr is Always 0 ??????????
{
.....
Pls help if you can
/hat