diff options
Diffstat (limited to '')
-rw-r--r-- | source/Defines.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Defines.h b/source/Defines.h index e92568d78..8b3c402c8 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -496,6 +496,18 @@ namespace ItemCategory (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 |