summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-20 00:13:35 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-20 00:13:35 +0800
commitc4456ddbebccaca51ab040c60e3c586ed2cc0a10 (patch)
tree53d3e23baab08d63d88fdc055f6880f884aac640 /src/map/itemdb.c
parent772cb2b111973c0c749e505ffd2685bb67e887bd (diff)
parent68f0fee76a73612263984da5d9de1e32b7ffe7da (diff)
downloadhercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.tar.gz
hercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.tar.bz2
hercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.tar.xz
hercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 508a0ccec..545ce9ba0 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2054,6 +2054,14 @@ struct item_combo * itemdb_id2combo( unsigned short id ) {
return itemdb->combos[id];
}
+/**
+ * check is item have usable type
+ **/
+bool itemdb_is_item_usable(struct item_data *item)
+{
+ return item->type == IT_HEALING || item->type == IT_USABLE || item->type == IT_CASH;
+}
+
/*==========================================
* Initialize / Finalize
*------------------------------------------*/
@@ -2337,4 +2345,5 @@ void itemdb_defaults(void) {
itemdb->final_sub = itemdb_final_sub;
itemdb->clear = itemdb_clear;
itemdb->id2combo = itemdb_id2combo;
+ itemdb->is_item_usable = itemdb_is_item_usable;
}