Przeglądaj źródła

- Reverted temporarily the Cart Termination equation until it can be fixed...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7655 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 lat temu
rodzic
commit
a4103cbab4
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 2 0
      Changelog-Trunk.txt
  2. 3 1
      src/map/battle.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ 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/07/13
+	* Reverted temporarily the Cart Termination equation until it can be
+	  fixed... [Skotlex]
 	* Fixed script command "recovery". [Skotlex]
 2006/07/12
 	* Fixed a small typo in my code [Zido]

+ 3 - 1
src/map/battle.c

@@ -1426,7 +1426,9 @@ static struct Damage battle_calc_weapon_attack(
 					if (i < 1) i = 1;
 					//Preserve damage ratio when max cart weight is changed.
 					if(sd && sd->cart_weight && sd->cart_max_weight)
-						skillratio += (sd->cart_weight * 80000) / (i * sd->cart_max_weight) - 100;
+//	FIXME: Something is wrong with this check! But what...? [Skotlex]
+//						skillratio += (sd->cart_weight * 80000) / (i * sd->cart_max_weight) - 100;
+						skillratio += sd->cart_weight/i - 100;
 					else if (!sd)
 						skillratio += 80000 / i - 100;
 					flag.cardfix = 0;