summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-17 12:15:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-17 12:15:34 +0300
commit707ccaa19fa60aab91dec2b2394b4ff588e01f4e (patch)
tree43113cef54430fca78bc7a1bd3face9b6dba0e7a /src/map/itemdb.c
parent0259ea31939be1ec56a47980256d67837158b3f2 (diff)
downloadevol-hercules-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.tar.gz
evol-hercules-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.tar.bz2
evol-hercules-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.tar.xz
evol-hercules-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.zip
Allow "use" pet eggs.
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
new file mode 100644
index 0000000..0057a75
--- /dev/null
+++ b/src/map/itemdb.c
@@ -0,0 +1,28 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 Evol developers
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "../../../common/HPMi.h"
+#include "../../../common/malloc.h"
+#include "../../../common/mmo.h"
+#include "../../../common/socket.h"
+#include "../../../common/strlib.h"
+#include "../../../map/itemdb.h"
+#include "../../../map/map.h"
+#include "../../../map/npc.h"
+#include "../../../map/pc.h"
+
+#include "map/data/mapd.h"
+#include "map/data/npcd.h"
+#include "map/struct/mapdext.h"
+#include "map/struct/npcdext.h"
+#include "map/npc.h"
+
+bool eitemdb_is_item_usable(struct item_data *item)
+{
+ hookStop();
+ return item->type == IT_HEALING || item->type == IT_USABLE || item->type == IT_CASH || item->type == IT_PETEGG;
+}