Jump to content

Bug with bonuses in items.


Recommended Posts

Hi.

 

I have server on source and I have a problem with bonuses in item. 

 

 

Item_attr[db]

.png

.png

 

Screens items in game after mixed bonuses:

.png

.png

.png

.png

 

Item Attribute.cpp

Spoiler
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;

}

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.