summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
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: