diff options
author | Haru <haru@dotalux.com> | 2018-01-14 15:22:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-14 15:22:13 +0100 |
commit | adaebd02567d3034f88acda3a99c56358e1adc13 (patch) | |
tree | 2e379dc9a740a5c453aa845fc9387e95f1d10747 /src/map/itemdb.h | |
parent | be6b748363717519019cd606d2013868ae6d9378 (diff) | |
parent | 6612f0bb52d11c2a097f80174cbbb2e98e2ff4aa (diff) | |
download | hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.gz hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.bz2 hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.xz hercules-adaebd02567d3034f88acda3a99c56358e1adc13.zip |
Merge pull request #1939 from Asheraf/zero_drop_packet
Add support for new drop packet 0xadd for zero clients
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index d2d3b6c73..5344a7cd6 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -472,6 +472,7 @@ struct item_data { int view_id; int matk; int elvmax;/* maximum level for this item */ + int dropeffectmode; int delay; uint64 class_base[3]; ///< Specifies if the base can wear this item (split in 3 indexes per type: 1-1, 2-1, 2-2) @@ -495,6 +496,7 @@ struct item_data { unsigned force_serial : 1; unsigned no_options: 1; // < disallows use of item options on the item. (non-equippable items are automatically flagged) [Smokexyz] unsigned drop_announce : 1; // Official Drop Announce [Jedzkie] + unsigned showdropeffect: 1; // < Allow showing effect on item drop [Asheraf] } flag; struct {// item stacking limitation unsigned short amount; @@ -538,6 +540,8 @@ struct item_data { #define itemdb_value_sell(n) (itemdb->search(n)->value_sell) #define itemdb_canrefine(n) (!itemdb->search(n)->flag.no_refine) #define itemdb_allowoption(n) (!itemdb->search(n)->flag.no_options) +#define itemdb_showdropeffect(n) (itemdb->search(n)->flag.showdropeffect) +#define itemdb_dropeffectmode(n) (itemdb->search(n)->dropeffectmode) #define itemdb_is_element(n) ((n) >= ITEMID_SCARLET_PTS && (n) <= ITEMID_LIME_GREEN_PTS) #define itemdb_is_spellbook(n) ((n) >= ITEMID_MAGIC_BOOK_FB && (n) <= ITEMID_MAGIC_BOOK_DL) |