From 119196fdc5fe9fd6746580f8bf015961cdd562f1 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 11 Jul 2006 13:51:20 +0000 Subject: - Modified the login-sql server to do the ip-ban check only on the auth-packets instead of on every packet. - Modified Cart Termination so the damage is scaled accordingly with the max-cart-weight setting (so max damage is always the same). Thanks to aresdfe for the idea. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7609 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/battle.c b/src/map/battle.c index c143fc470..bbe1e8279 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1423,10 +1423,10 @@ static struct Damage battle_calc_weapon_attack( case WS_CARTTERMINATION: i = (10 * (16 - skill_lv)); if (i < 1) i = 1; - if(sd && sd->cart_weight > 0) - skillratio += sd->cart_weight / i - 100; + if(sd && sd->cart_weight > 0) //Preserve damage ratio when max cart weight is changed. + skillratio += (sd->cart_weight * 8000) / (i * battle_config.max_cart_weight) - 100; else if (!sd) - skillratio += battle_config.max_cart_weight / i - 100; + skillratio += 8000 / i - 100; flag.cardfix = 0; break; case TK_DOWNKICK: -- cgit v1.2.3-70-g09d2