summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-22 02:26:35 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:33 +0100
commita3977169437e507b963a0abc2ede5478cc1be320 (patch)
treefd4047042a96915007b76d49ebb3bb1c860ea8f3 /src
parent1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca (diff)
downloadhercules-a3977169437e507b963a0abc2ede5478cc1be320.tar.gz
hercules-a3977169437e507b963a0abc2ede5478cc1be320.tar.bz2
hercules-a3977169437e507b963a0abc2ede5478cc1be320.tar.xz
hercules-a3977169437e507b963a0abc2ede5478cc1be320.zip
Added definitions of struct itemlist
- To be used in various non-clif functions that right now take client data buffers directly. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/itemdb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 23a4bb1ca..47446d617 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -395,6 +395,14 @@ enum ItemNouseRestrictions {
INR_ALL = 0x1 ///< Sum of all the above values
};
+/** Convenience item list (entry) used in various functions */
+struct itemlist_entry {
+ int id; ///< Item ID or (inventory) index
+ int16 amount; ///< Amount
+};
+/** Convenience item list used in various functions */
+VECTOR_STRUCT_DECL(itemlist, struct itemlist_entry);
+
struct item_combo {
struct script_code *script;
unsigned short nameid[MAX_ITEMS_PER_COMBO];/* nameid array */