in eq_constants.h
Code:
/*
** Item types
**
*/
enum ItemClass
{
ItemClassCommon = 0,
ItemClassContainer = 1,
ItemClassBook = 2
};
So, ItemClassCommon is just checking to verify that the item is a normal item. I think your 1hs check should probably work fine to replace it. But, if you wanted to keep it in there just be be sure (since it was there before), it probably wouldn't hurt. I think you could just do something like this maybe:
Code:
if ((Weapon->ItemClass == ItemClassCommon) && ((Weapon->ItemType == ItemType1HS) || (Weapon->ItemType == ItemTypePierce) || (Weapon->ItemType == ItemType1HB)))
return BasicBonus;
That way you are checking for both things. I am no coder, but it makes sense that this should work to me.