From fd610efdb3cd8f1583a3918d54a679eb02ec76cd Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 21 Aug 2017 20:41:17 +0200 Subject: Add support for parsing arrays of constants as bitmasks in the item_db Fields marked as constant bitmasks will support the following syntaxes: Field: 10 // Decimal value Field: 0xA // Hexadecimal value Field: "FOO" // Constant Field: [2, 8] // Array of decimal values Field: [0x2, 0x8] // Array of hexadecimal values Field: ["FOO", "BAR"] // Array of constants Signed-off-by: Haru --- src/map/itemdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/itemdb.h') diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 8a1799fbd..980e8730e 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -647,6 +647,7 @@ struct itemdb_interface { struct item_combo * (*id2combo) (unsigned short id); bool (*is_item_usable) (struct item_data *item); bool (*lookup_const) (const struct config_setting_t *it, const char *name, int *value); + bool (*lookup_const_mask) (const struct config_setting_t *it, const char *name, int *value); }; #ifdef HERCULES_CORE -- cgit v1.2.3-70-g09d2