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.c | |
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.c')
-rw-r--r-- | src/map/itemdb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 7fedb19ae..17a73400a 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -2070,6 +2070,12 @@ int itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const char * if ((t = libconfig->setting_get_member(it, "DisableOptions"))) id.flag.no_options = libconfig->setting_get_bool(t) ? 1 : 0; + if ((t = libconfig->setting_get_member(it, "ShowDropEffect"))) + id.flag.showdropeffect = libconfig->setting_get_bool(t) ? 1 : 0; + + if (itemdb->lookup_const(it, "DropEffectMode", &i32) && i32 >= 0) + id.dropeffectmode = i32; + if (itemdb->lookup_const(it, "ViewSprite", &i32) && i32 >= 0) id.view_sprite = i32; |