summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 4ed031ecf..48dd67100 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -223,10 +223,10 @@ int mob_parse_dataset(struct spawn_data *data)
//FIXME: This implementation is not stable, npc scripts will stop working once MAX_MOB_DB changes value! [Skotlex]
if(data->class_ > 2*MAX_MOB_DB){ // large/tiny mobs [Valaris]
- data->state.size=2;
+ data->state.size=SZ_BIG;
data->class_ -= 2*MAX_MOB_DB;
} else if (data->class_ > MAX_MOB_DB) {
- data->state.size=1;
+ data->state.size=SZ_MEDIUM;
data->class_ -= MAX_MOB_DB;
}
@@ -240,9 +240,9 @@ int mob_parse_dataset(struct spawn_data *data)
if( i )
{
if( i&2 )
- data->state.size = 1;
+ data->state.size = SZ_MEDIUM;
else if( i&4 )
- data->state.size = 2;
+ data->state.size = SZ_BIG;
if( i&8 )
data->state.ai = 1;
}
@@ -2197,9 +2197,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
}
// change experience for different sized monsters [Valaris]
- if(md->special_state.size==1)
+ if(md->special_state.size==SZ_MEDIUM)
per /=2.;
- else if(md->special_state.size==2)
+ else if(md->special_state.size==SZ_BIG)
per *=2.;
if( md->dmglog[i].flag == MDLF_PET )
@@ -2313,9 +2313,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
}
// change drops depending on monsters size [Valaris]
- if(md->special_state.size==1 && drop_rate >= 2)
+ if(md->special_state.size==SZ_MEDIUM && drop_rate >= 2)
drop_rate/=2;
- else if(md->special_state.size==2)
+ else if(md->special_state.size==SZ_BIG)
drop_rate*=2;
if (src) {
//Drops affected by luk as a fixed increase [Valaris]