

Kamii
-
Posts
21 -
Joined
-
Last visited
Community Answers
-
Kamii's post in Cart overweight problem was marked as the answer
In that case use this:
i = 10 * (16 - skill_lv); if (i < 1) i = 1; //Preserve damage ratio when max cart weight is changed. if (sd && sd->cart_weight) { double cw; if (sd->cart_weight > battle_config.max_cart_weight) cw = battle_config.max_cart_weight; else cw = sd->cart_weight; skillratio += cw / i * 80000 / battle_config.max_cart_weight - 100; } else if (!sd) skillratio += 80000 / i - 100; break;