summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2013-11-06 16:30:09 -0800
committershennetsind <shennetsind@users.noreply.github.com>2013-11-06 16:30:09 -0800
commit1c46a54fc4a77072698892a480936160dc4d0e7a (patch)
treeb7b668c702e4c2b0ad745e6e465133fd25e56281 /src/map/mob.c
parent3a3d2297068809d25ca43e19fd2977f97b2728f5 (diff)
parent47401a4195c58e14f12200f1ba6aeb34ecd87df7 (diff)
downloadhercules-1c46a54fc4a77072698892a480936160dc4d0e7a.tar.gz
hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.tar.bz2
hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.tar.xz
hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.zip
Merge pull request #212 from shennetsind/master
Account-wide Exp/Drop/Death Modifiers
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index e3e079131..b8a8ed6c5 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2332,6 +2332,12 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
drop_rate = 1;
}
#endif
+ if( sd && sd->status.mod_drop != 100 ) {
+ drop_rate = drop_rate * sd->status.mod_drop / 100;
+ if( drop_rate < 1 )
+ drop_rate = 1;
+ }
+
// attempt to drop the item
if (rnd() % 10000 >= drop_rate)
continue;