Added ItemCategory::IsArmor()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1502 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
a4d903aa15
commit
3b429a9bdf
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user