From 0bacda32692729e4b9743f91d92cd329e198d73a Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sat, 21 Oct 2017 17:56:09 +0100 Subject: Implement horse inventory (#4053) * Implement horse inventory * Fix sign conversions * Add API doc for ItemCategory::IsHorseArmor * Improve HandleOpenHorseInventory comment and style fixes. --- src/Defines.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/Defines.h') diff --git a/src/Defines.h b/src/Defines.h index a3222f73a..7a7f4c598 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -1175,6 +1175,25 @@ namespace ItemCategory IsBoots(a_ItemType) ); } + + + + inline bool IsHorseArmor(short a_ItemType) + { + switch (a_ItemType) + { + case E_ITEM_IRON_HORSE_ARMOR: + case E_ITEM_GOLD_HORSE_ARMOR: + case E_ITEM_DIAMOND_HORSE_ARMOR: + { + return true; + } + default: + { + return false; + } + } + } } // tolua_end -- cgit v1.2.3