summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorMumbles <mumbles@qt-ro.com>2013-11-17 14:14:51 -0800
committerMumbles <mumbles@qt-ro.com>2013-11-18 08:48:12 -0800
commit0a24a4bb6340459a6128c39d13ab1bf37a5bc6b8 (patch)
tree3c83961c522812d2a15150b181332065a58b3f2e /src/map/mob.c
parent0839d5126e62ba9ad0ddf4fe8b548483fbb1c746 (diff)
downloadhercules-0a24a4bb6340459a6128c39d13ab1bf37a5bc6b8.tar.gz
hercules-0a24a4bb6340459a6128c39d13ab1bf37a5bc6b8.tar.bz2
hercules-0a24a4bb6340459a6128c39d13ab1bf37a5bc6b8.tar.xz
hercules-0a24a4bb6340459a6128c39d13ab1bf37a5bc6b8.zip
Corrected size-related constant names and cleaned up comments (closes #222).
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
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;