Kaynağa Gözat

Fixed script loading small/large monsters.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@337 54d463be-8e91-2dee-dedb-b68131a5f0ec
(no author) 20 yıl önce
ebeveyn
işleme
a1de05ce9f
2 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  1. 1 0
      Changelog.txt
  2. 9 0
      src/map/npc.c

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Date	Added
 11/23
+	* Fixed script loading small/large monsters. [Valaris]
 	* @charoption is now #option [MC Cameri]
 	* @charpetfriendly is now #petfriendly [MC Cameri]
 	* @charstats is now #stats [MC Cameri]

+ 9 - 0
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;