summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2017-08-28 01:12:06 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2017-10-22 00:15:06 +0800
commit2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c (patch)
tree8fc2bf5e0a3915d1adff34efc01517944acfc894 /src/map/mob.c
parent7c2f6afe542bf42f1c527877bde082274c473f29 (diff)
downloadhercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.tar.gz
hercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.tar.bz2
hercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.tar.xz
hercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.zip
Add NoAutoloot mapflag
- Enable server to disable autoloot settings for certain maps.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 98f8865a9..42195def9 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1904,6 +1904,7 @@ void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, struct ite
if( sd
&& (drop_rate <= sd->state.autoloot || pc->isautolooting(sd, ditem->item_data.nameid))
+ && (!map->list[sd->bl.m].flag.noautoloot)
&& (battle_config.idle_no_autoloot == 0 || DIFF_TICK(sockt->last_tick, sd->idletime) < battle_config.idle_no_autoloot)
&& (battle_config.homunculus_autoloot?1:!flag)
#ifdef AUTOLOOT_DISTANCE