summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-05-06 00:54:17 +0200
committerGitHub <noreply@github.com>2019-05-06 00:54:17 +0200
commit0316c4e40b05f03e2dadc2f49c3810d3eb97d2b2 (patch)
treee91e60fe9c3497a371a290df7bee16e026397e92 /src/map/battle.c
parent574801d93c55b5ac41f9bdbd660f747f1c5aaa76 (diff)
parent12ed74f45f25ba30758992816d0aa16013d86f2f (diff)
downloadhercules-0316c4e40b05f03e2dadc2f49c3810d3eb97d2b2.tar.gz
hercules-0316c4e40b05f03e2dadc2f49c3810d3eb97d2b2.tar.bz2
hercules-0316c4e40b05f03e2dadc2f49c3810d3eb97d2b2.tar.xz
hercules-0316c4e40b05f03e2dadc2f49c3810d3eb97d2b2.zip
Merge pull request #2419 from 4144/statusfields
Dehardcode limits for attack related calculated parameters
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 2f33e2ea9..4ee1791ba 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7419,8 +7419,22 @@ static const struct battle_data {
{ "ping_time", &battle_config.ping_time, 20, 0, 99999999, },
{ "option_drop_max_loop", &battle_config.option_drop_max_loop, 10, 1, 100000, },
{ "drop_connection_on_quit", &battle_config.drop_connection_on_quit, 0, 0, 1, },
- {"features/enable_refinery_ui", &battle_config.enable_refinery_ui, 1, 0, 1, },
- {"features/replace_refine_npcs", &battle_config.replace_refine_npcs, 1, 0, 1, },
+ { "features/enable_refinery_ui", &battle_config.enable_refinery_ui, 1, 0, 1, },
+ { "features/replace_refine_npcs", &battle_config.replace_refine_npcs, 1, 0, 1, },
+ { "batk_min_limit", &battle_config.batk_min, 0, 0, INT_MAX, },
+ { "batk_max_limit", &battle_config.batk_max, USHRT_MAX, 1, INT_MAX, },
+ { "matk_min_limit", &battle_config.matk_min, 0, 0, INT_MAX, },
+ { "matk_max_limit", &battle_config.matk_max, USHRT_MAX, 1, INT_MAX, },
+ { "watk_min_limit", &battle_config.watk_min, 0, 0, INT_MAX, },
+ { "watk_max_limit", &battle_config.watk_max, USHRT_MAX, 1, INT_MAX, },
+ { "flee_min_limit", &battle_config.flee_min, 1, 1, INT_MAX, },
+ { "flee_max_limit", &battle_config.flee_max, SHRT_MAX, 1, INT_MAX, },
+ { "flee2_min_limit", &battle_config.flee2_min, 10, 1, INT_MAX, },
+ { "flee2_max_limit", &battle_config.flee2_max, SHRT_MAX, 1, INT_MAX, },
+ { "critical_min_limit", &battle_config.critical_min, 10, 1, INT_MAX, },
+ { "critical_max_limit", &battle_config.critical_max, SHRT_MAX, 1, INT_MAX, },
+ { "hit_min_limit", &battle_config.hit_min, 1, 1, INT_MAX, },
+ { "hit_max_limit", &battle_config.hit_max, SHRT_MAX, 1, INT_MAX, },
};
static bool battle_set_value_sub(int index, int value)