Jump to content
dzekonix

Bug with bonuses items. C++

Recommended Posts

Hi.
 
I have server on source and I have a problem with bonuses in item. 
 
 
Item_attr[db]
887061432383133111292.png
547101432383133111292.png
 
Screens items in game after mixed bonuses:
965401432383133111292.png
594801432383133111292.png
110761432383133111292.png
866341432383133111292.png
 
Item Attribute.cpp


int CItem::GetAttributeSetIndex()
{
if (GetType() == ITEM_WEAPON)
{
if (GetSubType() == WEAPON_ARROW)
return -1;
 
return ATTRIBUTE_SET_WEAPON;
}
 
if (GetType() == ITEM_ARMOR || GetType() == ITEM_COSTUME)
{
switch (GetSubType())
{
case ARMOR_BODY:
// case COSTUME_BODY: // ??? ??? ?? ??? ??? Attribute Set? ???? ???? ?? (ARMOR_BODY == COSTUME_BODY)
return ATTRIBUTE_SET_BODY;
 
case ARMOR_WRIST:
return ATTRIBUTE_SET_WRIST;
 
case ARMOR_FOOTS:
return ATTRIBUTE_SET_FOOTS;
 
case ARMOR_NECK:
return ATTRIBUTE_SET_NECK;
 
case ARMOR_HEAD:
// case COSTUME_HAIR: // ??? ??? ?? ?? ???? ??? Attribute Set? ???? ???? ?? (ARMOR_HEAD == COSTUME_HAIR)
return ATTRIBUTE_SET_HEAD;
 
case ARMOR_SHIELD:
return ATTRIBUTE_SET_SHIELD;
 
case ARMOR_EAR:
return ATTRIBUTE_SET_EAR;
}
}
 
return -1;
}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...