diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-18 17:33:48 -0800 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-18 17:33:48 -0800 |
commit | 51cbaf27c96e874850588ddcfa13b656db45bb2e (patch) | |
tree | 8e8eac3791a925ebb7a3136bfd2833e279ef5a85 /src/map/mob.c | |
parent | 116e8b8a8727895010b85dfc332f3c5f95bb498f (diff) | |
parent | 0a24a4bb6340459a6128c39d13ab1bf37a5bc6b8 (diff) | |
download | hercules-51cbaf27c96e874850588ddcfa13b656db45bb2e.tar.gz hercules-51cbaf27c96e874850588ddcfa13b656db45bb2e.tar.bz2 hercules-51cbaf27c96e874850588ddcfa13b656db45bb2e.tar.xz hercules-51cbaf27c96e874850588ddcfa13b656db45bb2e.zip |
Merge pull request #224 from datmumbles/size_changes
Corrected size-related constant names (closes #222).
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index c3c6fceee..4e648b2a6 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2183,7 +2183,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { // change experience for different sized monsters [Valaris] if (battle_config.mob_size_influence) { switch( md->special_state.size ) { - case SZ_MEDIUM: + case SZ_SMALL: per /= 2.; break; case SZ_BIG: @@ -2304,7 +2304,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { // change drops depending on monsters size [Valaris] if (battle_config.mob_size_influence) { - if (md->special_state.size == SZ_MEDIUM && drop_rate >= 2) + if (md->special_state.size == SZ_SMALL && drop_rate >= 2) drop_rate /= 2; else if( md->special_state.size == SZ_BIG) drop_rate *= 2; @@ -3470,7 +3470,7 @@ int mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, cons sd->fd = fd; //Finally, spawn it. - md = mob->once_spawn_sub(&sd->bl, m, x, y, "--en--", class_, event, SZ_SMALL, AI_NONE); + md = mob->once_spawn_sub(&sd->bl, m, x, y, "--en--", class_, event, SZ_MEDIUM, AI_NONE); if (!md) return 0; //Failed? md->special_state.clone = 1; |