فهرست منبع

- Added missing icon for Joint Beat
- Mob-search functions will now skip enemies with no exp/job_exp.
- Treasure chests will now be excluded from the mob-drop listings (@whodrops)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6534 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 سال پیش
والد
کامیت
483d1d7418
3فایلهای تغییر یافته به همراه11 افزوده شده و 3 حذف شده
  1. 4 0
      Changelog-Trunk.txt
  2. 6 2
      src/map/mob.c
  3. 1 1
      src/map/status.c

+ 4 - 0
Changelog-Trunk.txt

@@ -4,6 +4,10 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/05/09
+	* Added missing icon for Joint Beat [Skotlex]
+	* Mob-search functions will now skip enemies with no exp/job_exp. [Skotlex]
+	* Treasure chests will now be excluded from the mob-drop listings
+	  (@whodrops) [Skotlex]
 	* Fix on pc_skill which fixes overlapping when one gets more than one bonus
 	  for the same skill. [Skotlex]
 	* Updated main.sql's loginlog table structure. [Skotlex]

+ 6 - 2
src/map/mob.c

@@ -84,7 +84,9 @@ int mobdb_searchname(const char *str)
 static int mobdb_searchname_array_sub(struct mob_db* mob, const char *str)
 {
 	if (mob == mob_dummy)
-		return 1; //Invalid item.
+		return 1; //Invalid mob.
+	if(!mob->base_exp && !mob->job_exp)
+		return 1; //Discount slave-mobs (no exp) as requested by Playtester. [Skotlex]
 	if(stristr(mob->jname,str))
 		return 0;
 	if(stristr(mob->name,str))
@@ -3267,7 +3269,9 @@ static int mob_readdb(void)
 				mob_db_data[class_]->dropitem[i].p = mob_drop_adjust(rate, rate_adjust, ratemin, ratemax);
 
 				//calculate and store Max available drop chance of the item
-				if (mob_db_data[class_]->dropitem[i].p) {
+				if (mob_db_data[class_]->dropitem[i].p &&
+					(class_ < 1324 || class_ > 1363) //Skip treasure chests.
+				) {
 					id = itemdb_search(mob_db_data[class_]->dropitem[i].nameid);
 					if (id->maxchance==10000 || (id->maxchance < mob_db_data[class_]->dropitem[i].p) ) {
 					//item has bigger drop chance or sold in shops

+ 1 - 1
src/map/status.c

@@ -232,7 +232,7 @@ void initChangeTables(void) {
 	set_sc(CG_MARIONETTE,           SC_MARIONETTE2,         SI_MARIONETTE2);
 	set_sc(LK_SPIRALPIERCE,         SC_STOP,                SI_BLANK);
 	set_sc(LK_HEADCRUSH,            SC_BLEEDING,            SI_BLEEDING);
-	set_sc(LK_JOINTBEAT,            SC_JOINTBEAT,           SI_BLANK);
+	set_sc(LK_JOINTBEAT,            SC_JOINTBEAT,           SI_JOINTBEAT);
 	set_sc(HW_NAPALMVULCAN,         SC_CURSE,               SI_BLANK);
 	set_sc(PF_MINDBREAKER,          SC_MINDBREAKER,         SI_BLANK);
 	set_sc(PF_MEMORIZE,             SC_MEMORIZE,            SI_BLANK);