Browse Source

* Follow-up to c154fe1. Bugged item drop rate increase also applies to renewal.

aleos89 11 năm trước cách đây
mục cha
commit
2b8b31a4d1
2 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 0 1
      conf/battle/drops.conf
  2. 2 4
      src/map/mob.c

+ 0 - 1
conf/battle/drops.conf

@@ -110,7 +110,6 @@ drop_rate0item: no
 // Increase item drop rate +0.01%? (Note 1)
 // On official servers it is possible to get 0.00% drop chance so all items are increased by 0.01%.
 // NOTE: This is viewed as a bug to rAthena.
-// NOTE2: This only applies if RENEWAL_DROP (src/config/renewal.h) is disabled.
 // Default: no
 drop_rateincrease: no
 

+ 2 - 4
src/map/mob.c

@@ -3805,10 +3805,8 @@ static bool mob_parse_dbrow(char** str)
 		id = itemdb_search(db->dropitem[i].nameid);
 		type = id->type;
 		rate = atoi(str[k+1]);
-		#ifndef RENEWAL_DROP
-			if (battle_config.drop_rateincrease)
-				if (rate < 5000) rate++;
-		#endif
+		if (battle_config.drop_rateincrease)
+			if (rate < 5000) rate++;
 		if( (class_ >= 1324 && class_ <= 1363) || (class_ >= 1938 && class_ <= 1946) )
 		{	//Treasure box drop rates [Skotlex]
 			rate_adjust = battle_config.item_rate_treasure;