diff options
author | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-20 20:29:35 +0000 |
---|---|---|
committer | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-20 20:29:35 +0000 |
commit | 12b27f850b453b4c9edeaf0c1e416d670c460e38 (patch) | |
tree | 4631891152683b5adcd4e1291d59f76f65740e5b /src/map | |
parent | a46c5b799de0d33be85dce39bdc32edc6edc3a65 (diff) | |
download | hercules-12b27f850b453b4c9edeaf0c1e416d670c460e38.tar.gz hercules-12b27f850b453b4c9edeaf0c1e416d670c460e38.tar.bz2 hercules-12b27f850b453b4c9edeaf0c1e416d670c460e38.tar.xz hercules-12b27f850b453b4c9edeaf0c1e416d670c460e38.zip |
*Updated Valaris' large/tiny monsters - of course, he told us what he did wrong and how to fix it :) [Codemaster & Valaris]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@683 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/npc.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 0d3bcffd3..45ffc97fb 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1968,16 +1968,6 @@ int npc_parse_mob(char *w1,char *w2,char *w3,char *w4) for(i=0;i<num;i++) { md=(struct mob_data *)aCalloc(1,sizeof(struct mob_data)); - - if(class>4000) { // large/tiny mobs [Valaris] - md->size=2; - class-=4000; - } - else if(class>2000) { - md->size=1; - class-=2000; - } - md->bl.prev=NULL; md->bl.next=NULL; md->bl.m=m; @@ -1996,6 +1986,18 @@ int npc_parse_mob(char *w1,char *w2,char *w3,char *w4) memcpy(md->name,w3,24); md->n = i; + + if(class>4000) { // large/tiny mobs [Valaris] + md->size=2; + md->base_class = md->class = class-4000; + } + else if(class>2000) { + md->size=1; + md->base_class = md->class = class-2000; + } else { + md->base_class = md->class = class; + } + md->base_class = md->class = class; md->bl.id=npc_get_new_npc_id(); md->m =m; |