summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-11 11:26:55 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-11 11:26:55 +0000
commitff4d9ac980318119e4293de7057a811dcf798d7d (patch)
treedecfc813b8026cdff04337973dc62e082709df8b /src/map/itemdb.h
parent1de0eb7a5d7752fd03675be0598146632256bb80 (diff)
downloadhercules-ff4d9ac980318119e4293de7057a811dcf798d7d.tar.gz
hercules-ff4d9ac980318119e4293de7057a811dcf798d7d.tar.bz2
hercules-ff4d9ac980318119e4293de7057a811dcf798d7d.tar.xz
hercules-ff4d9ac980318119e4293de7057a811dcf798d7d.zip
Implementing Kenpachi's design of item_combo_db.txt
- Credits to Kenpachi and Masao for the db file edits. - Credits to GreenBox for the parsing - This commit might accidentally override a few item db entries, our db developers are expecting this and will work on the conflicting entries. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16393 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index a19ac45e0..f84330522 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -4,8 +4,9 @@
#ifndef _ITEMDB_H_
#define _ITEMDB_H_
+#include "../common/db.h"
#include "../common/mmo.h" // ITEM_NAME_LENGTH
-#include "map.h" //REMODE
+#include "map.h"
// 32k array entries in array (the rest goes to the db)
#define MAX_ITEMDB 0x8000
@@ -17,6 +18,9 @@
#define MAX_SEARCH 5 //Designed for search functions, species max number of matches to display.
+/* maximum amount of items a combo may require */
+#define MAX_ITEMS_PER_COMBO 6
+
enum item_itemid {
ITEMID_EMPERIUM = 714,
ITEMID_YELLOW_GEMSTONE = 715,
@@ -141,6 +145,10 @@ struct item_group {
int qty; //Counts amount of items in the group.
};
+struct item_combo {
+ char script[2048]; /* combo script */
+};
+
struct item_data* itemdb_searchname(const char *name);
int itemdb_searchname_array(struct item_data** data, int size, const char *str);
struct item_data* itemdb_load(int nameid);