summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2017-12-23 01:32:35 +0000
committerAsheraf <acheraf1998@gmail.com>2017-12-23 02:37:10 +0000
commitfce05b62b79221fbed2f64d8d32d6f97cee8b00f (patch)
tree233ef693f9400a632f0bc434d981b1a0a721fbc6 /src/map/itemdb.c
parent99c34eb5637fc48eba2998e304697b96ad6e89bf (diff)
downloadhercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.tar.gz
hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.tar.bz2
hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.tar.xz
hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.zip
Add support for new drop packet 0xadd for zero clients
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c6
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;