diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-17 01:22:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-19 21:53:40 +0300 |
commit | ec694010abc077a7a8463bccc81bde7c9903a5d7 (patch) | |
tree | 1c7e694d3bf172c3313564eee7d69ffed667832e /src/map | |
parent | 9b6d8636d496f2002e95103af5d53126bba63af9 (diff) | |
download | hercules-ec694010abc077a7a8463bccc81bde7c9903a5d7.tar.gz hercules-ec694010abc077a7a8463bccc81bde7c9903a5d7.tar.bz2 hercules-ec694010abc077a7a8463bccc81bde7c9903a5d7.tar.xz hercules-ec694010abc077a7a8463bccc81bde7c9903a5d7.zip |
Changed MAX_ITEMDB to 0xFFFF.
Also add ifndef to other defines near it.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/itemdb.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 3b7ce4655..6cce715d3 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -33,10 +33,18 @@ struct hplugin_data_store; /** * Defines **/ -#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db) +#ifndef MAX_ITEMDB +#define MAX_ITEMDB 0xFFFF +#endif +#ifndef MAX_ITEMDELAYS #define MAX_ITEMDELAYS 10 // The maximum number of item delays +#endif +#ifndef MAX_SEARCH #define MAX_SEARCH 5 //Designed for search functions, species max number of matches to display. +#endif +#ifndef MAX_ITEMS_PER_COMBO #define MAX_ITEMS_PER_COMBO 6 /* maximum amount of items a combo may require */ +#endif #define CARD0_FORGE 0x00FF #define CARD0_CREATE 0x00FE @@ -45,8 +53,10 @@ struct hplugin_data_store; //Marks if the card0 given is "special" (non-item id used to mark pets/created items. [Skotlex] #define itemdb_isspecial(i) ((i) == CARD0_FORGE || (i) == CARD0_CREATE || (i) == CARD0_PET) +#ifndef UNKNOWN_ITEM_ID //Use apple for unknown items. #define UNKNOWN_ITEM_ID 512 +#endif enum item_itemid { ITEMID_RED_POTION = 501, |