summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-08 15:54:35 +0100
committerHaru <haru@dotalux.com>2016-01-08 15:54:35 +0100
commit3d90889ad1c4e53bf8b61e478fc83f123076422b (patch)
tree2844fd1a8e8a9a6fea4a842b9a300ac9c8ee8adf /src/map/itemdb.h
parente3da170660e8c52ec5657c086057085ef20e382f (diff)
downloadhercules-3d90889ad1c4e53bf8b61e478fc83f123076422b.tar.gz
hercules-3d90889ad1c4e53bf8b61e478fc83f123076422b.tar.bz2
hercules-3d90889ad1c4e53bf8b61e478fc83f123076422b.tar.xz
hercules-3d90889ad1c4e53bf8b61e478fc83f123076422b.zip
Cleaned up the pilebunker item check
- Follow-up to e3da170660e8c52ec5657c086057085ef20e382f - Removed redundant checks for sd->equip_index[EQI_HAND_R] validity - Added itemid_is_pilebunker macro - Restored correct indentation of the return instruction Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index b595fabf6..d751451c6 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -545,6 +545,7 @@ struct item_data {
#define itemdb_iscashfood(n) ((n) >= ITEMID_STR_DISH10_ && (n) <= ITEMID_VIT_DISH10_)
#define itemdb_is_GNbomb(n) ((n) >= ITEMID_APPLE_BOMB && (n) <= ITEMID_VERY_HARD_LUMP)
#define itemdb_is_GNthrowable(n) ((n) >= ITEMID_MYSTERIOUS_POWDER && (n) <= ITEMID_BLACK_THING_TO_THROW)
+#define itemid_is_pilebunker(n) ((n) == ITEMID_PILEBUNCKER || (n) == ITEMID_PILEBUNCKER_P || (n) == ITEMID_PILEBUNCKER_S || (n) == ITEMID_PILEBUNCKER_T)
#define itemdb_is_shadowequip(n) ((n) & (EQP_SHADOW_ARMOR|EQP_SHADOW_WEAPON|EQP_SHADOW_SHIELD|EQP_SHADOW_SHOES|EQP_SHADOW_ACC_R|EQP_SHADOW_ACC_L))
#define itemdb_is_costumeequip(n) ((n) & (EQP_COSTUME_HEAD_TOP|EQP_COSTUME_HEAD_MID|EQP_COSTUME_HEAD_LOW|EQP_COSTUME_GARMENT))