summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-25 18:22:00 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-25 18:22:00 +0000
commit11c2d016d40070f1895d88c0eb7bb88079555cfd (patch)
treec0b0a1d761b782087e34cc19d6058beeff587e4e /src/map/mob.c
parent2719529fe331896a79bb31770629bafac059acb3 (diff)
downloadhercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.tar.gz
hercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.tar.bz2
hercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.tar.xz
hercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.zip
* Code consistency updates. No functional changes. Credits to Lighta.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15974 54d463be-8e91-2dee-dedb-b68131a5f0ec
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]