Преглед изворни кода

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

celest пре 20 година
родитељ
комит
619206403c
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 2 0
      Changelog.txt
  2. 1 1
      src/map/battle.c

+ 2 - 0
Changelog.txt

@@ -1,5 +1,7 @@
 Date	Added
 Date	Added
 12/28
 12/28
+        * Reduced weapon breaking chance for Overthrust, thanks Draco - i almost
+          forgot to add this update [celest]
 	* added checks into the skill code to prevent proxy's/bots
 	* added checks into the skill code to prevent proxy's/bots
 	  from crashing the server by using skillid's that
 	  from crashing the server by using skillid's that
 	  are WAY out of range (SVN 841) [MouseJstr]
 	  are WAY out of range (SVN 841) [MouseJstr]

+ 1 - 1
src/map/battle.c

@@ -4046,7 +4046,7 @@ struct Damage battle_calc_weapon_attack(
 				}
 				}
 			}
 			}
 			if(sd->sc_data[SC_OVERTHRUST].timer!=-1) {
 			if(sd->sc_data[SC_OVERTHRUST].timer!=-1) {
-				breakrate = 20*sd->sc_data[SC_OVERTHRUST].val1;
+				breakrate = 10*sd->sc_data[SC_OVERTHRUST].val1;
 			//if(wd.type==0x0a) //removed! because CRITS don't affect on breaking chance [Lupus]
 			//if(wd.type==0x0a) //removed! because CRITS don't affect on breaking chance [Lupus]
 			//	breakrate*=2;
 			//	breakrate*=2;
 				if(rand()%10000 < breakrate*battle_config.equipment_break_rate/100 || breakrate >= 10000) {
 				if(rand()%10000 < breakrate*battle_config.equipment_break_rate/100 || breakrate >= 10000) {