summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-20 16:02:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-20 16:02:22 +0000
commit4f06f94e70e92904a8d86be32de0b1dfb6c35633 (patch)
treeef36652e967a87f3d0fdbaa61d910e4b464516a2 /src/map/mob.c
parentf3e0608b8871675ec21c8da90ea3ca545f54e017 (diff)
downloadhercules-4f06f94e70e92904a8d86be32de0b1dfb6c35633.tar.gz
hercules-4f06f94e70e92904a8d86be32de0b1dfb6c35633.tar.bz2
hercules-4f06f94e70e92904a8d86be32de0b1dfb6c35633.tar.xz
hercules-4f06f94e70e92904a8d86be32de0b1dfb6c35633.zip
- getpetinfo 5 will now return the pet's rename flag.
- Autoloot will now only work on items dropped a certain distance from the player. The distance is defined by AUTOLOOT_DISTANCE in atcommand.h and defaults to AREA_SIZE. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10039 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 4cde44b84..c56e4362f 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1494,7 +1494,8 @@ static void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, str
}
if (dlist->first_sd && dlist->first_sd->state.autoloot &&
- (drop_rate <= dlist->first_sd->state.autoloot)
+ drop_rate <= dlist->first_sd->state.autoloot &&
+ check_distance_blxy(&dlist->first_sd->bl, dlist->x, dlist->y, AUTOLOOT_DISTANCE)
) { //Autoloot.
if (party_share_loot(
dlist->first_sd->status.party_id?