summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.c')
-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;