|
@@ -5498,7 +5498,7 @@ static int32 battle_calc_attack_skill_ratio(struct Damage* wd, struct block_list
|
|
if (wd->miscflag&4) { // ATK [(Skill Level x 150) + (1000 x Target current weight / Maximum weight) + (Target Base Level x 5) x (Caster Base Level / 150)] %
|
|
if (wd->miscflag&4) { // ATK [(Skill Level x 150) + (1000 x Target current weight / Maximum weight) + (Target Base Level x 5) x (Caster Base Level / 150)] %
|
|
skillratio += -100 + 150 * skill_lv + status_get_lv(target) * 5;
|
|
skillratio += -100 + 150 * skill_lv + status_get_lv(target) * 5;
|
|
if (tsd && tsd->weight)
|
|
if (tsd && tsd->weight)
|
|
- skillratio += 100 * tsd->weight / tsd->max_weight;
|
|
|
|
|
|
+ skillratio += pc_getpercentweight(*tsd);
|
|
RE_LVL_DMOD(150);
|
|
RE_LVL_DMOD(150);
|
|
} else {
|
|
} else {
|
|
if (status_get_class_(target) == CLASS_BOSS)
|
|
if (status_get_class_(target) == CLASS_BOSS)
|
|
@@ -11612,8 +11612,13 @@ static const struct _battle_data {
|
|
{ "natural_healhp_interval", &battle_config.natural_healhp_interval, 6000, NATURAL_HEAL_INTERVAL, INT_MAX, },
|
|
{ "natural_healhp_interval", &battle_config.natural_healhp_interval, 6000, NATURAL_HEAL_INTERVAL, INT_MAX, },
|
|
{ "natural_healsp_interval", &battle_config.natural_healsp_interval, 8000, NATURAL_HEAL_INTERVAL, INT_MAX, },
|
|
{ "natural_healsp_interval", &battle_config.natural_healsp_interval, 8000, NATURAL_HEAL_INTERVAL, INT_MAX, },
|
|
{ "natural_heal_skill_interval", &battle_config.natural_heal_skill_interval, 10000, NATURAL_HEAL_INTERVAL, INT_MAX, },
|
|
{ "natural_heal_skill_interval", &battle_config.natural_heal_skill_interval, 10000, NATURAL_HEAL_INTERVAL, INT_MAX, },
|
|
|
|
+#ifdef RENEWAL
|
|
|
|
+ { "natural_heal_weight_rate", &battle_config.natural_heal_weight_rate, 70, 0, 100 },
|
|
|
|
+ { "open_box_weight_rate", &battle_config.open_box_weight_rate, 90, 0, 100 },
|
|
|
|
+#else
|
|
{ "natural_heal_weight_rate", &battle_config.natural_heal_weight_rate, 50, 0, 100 },
|
|
{ "natural_heal_weight_rate", &battle_config.natural_heal_weight_rate, 50, 0, 100 },
|
|
- { "natural_heal_weight_rate_renewal", &battle_config.natural_heal_weight_rate_renewal,70, 0, 100 },
|
|
|
|
|
|
+ { "open_box_weight_rate", &battle_config.open_box_weight_rate, 70, 0, 100 },
|
|
|
|
+#endif
|
|
{ "arrow_decrement", &battle_config.arrow_decrement, 1, 0, 2, },
|
|
{ "arrow_decrement", &battle_config.arrow_decrement, 1, 0, 2, },
|
|
{ "ammo_unequip", &battle_config.ammo_unequip, 1, 0, 1, },
|
|
{ "ammo_unequip", &battle_config.ammo_unequip, 1, 0, 1, },
|
|
{ "ammo_check_weapon", &battle_config.ammo_check_weapon, 1, 0, 1, },
|
|
{ "ammo_check_weapon", &battle_config.ammo_check_weapon, 1, 0, 1, },
|
|
@@ -12120,6 +12125,7 @@ static const struct _battle_data {
|
|
#endif
|
|
#endif
|
|
{ "loot_range", &battle_config.loot_range, 12, 1, MAX_WALKPATH, },
|
|
{ "loot_range", &battle_config.loot_range, 12, 1, MAX_WALKPATH, },
|
|
{ "assist_range", &battle_config.assist_range, 11, 1, MAX_WALKPATH, },
|
|
{ "assist_range", &battle_config.assist_range, 11, 1, MAX_WALKPATH, },
|
|
|
|
+ { "major_overweight_rate", &battle_config.major_overweight_rate, 90, 0, 100 },
|
|
|
|
|
|
#include <custom/battle_config_init.inc>
|
|
#include <custom/battle_config_init.inc>
|
|
};
|
|
};
|