1
0

Added ItemCategory::IsArmor()

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1502 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-05-24 07:20:16 +00:00
parent a4d903aa15
commit 3b429a9bdf

View File

@ -496,6 +496,18 @@ namespace ItemCategory
(a_ItemType == E_ITEM_DIAMOND_BOOTS) (a_ItemType == E_ITEM_DIAMOND_BOOTS)
); );
} }
inline bool IsArmor(short a_ItemType)
{
return (
IsHelmet(a_ItemType) ||
IsChestPlate(a_ItemType) ||
IsLeggings(a_ItemType) ||
IsBoots(a_ItemType)
);
}
} }
// tolua_end // tolua_end