summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 01:57:38 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 01:57:38 +0000
commitfd7e97b5e56bc22dad7814b20fefe45c66ff5352 (patch)
treeb0c2b9fb1bacc44322142ebae81052099669cf22 /src
parent30488c6a7e0268803618a8a82621ac3c0a6c1d64 (diff)
downloadhercules-fd7e97b5e56bc22dad7814b20fefe45c66ff5352.tar.gz
hercules-fd7e97b5e56bc22dad7814b20fefe45c66ff5352.tar.bz2
hercules-fd7e97b5e56bc22dad7814b20fefe45c66ff5352.tar.xz
hercules-fd7e97b5e56bc22dad7814b20fefe45c66ff5352.zip
Fixed script loading small/large monsters.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@337 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 09c823815..b1f9c54ec 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1925,6 +1925,15 @@ 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;