summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-09 17:19:57 +0100
committerHaru <haru@dotalux.com>2020-04-05 21:29:52 +0200
commitea24f8edd68edb71cb1ea2cee08979667e4f92e6 (patch)
tree29f49eebb39705fbb0f4b21f35bed9188f572577 /src/map
parentc1598fe112a6d28619c0db8f03c0346a196fd486 (diff)
downloadhercules-ea24f8edd68edb71cb1ea2cee08979667e4f92e6.tar.gz
hercules-ea24f8edd68edb71cb1ea2cee08979667e4f92e6.tar.bz2
hercules-ea24f8edd68edb71cb1ea2cee08979667e4f92e6.tar.xz
hercules-ea24f8edd68edb71cb1ea2cee08979667e4f92e6.zip
Add pet_catch_rate_official_formula battle flag
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c1
-rw-r--r--src/map/battle.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 99fd2ab8c..40c645cf7 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7085,6 +7085,7 @@ static const struct battle_data {
{ "guild_emperium_check", &battle_config.guild_emperium_check, 1, 0, 1, },
{ "guild_exp_limit", &battle_config.guild_exp_limit, 50, 0, 99, },
{ "player_invincible_time", &battle_config.pc_invincible_time, 5000, 0, INT_MAX, },
+ { "pet_catch_rate_official_formula", &battle_config.pet_catch_rate_official_formula, 1, 0, 1, },
{ "pet_catch_rate", &battle_config.pet_catch_rate, 100, 0, INT_MAX, },
{ "pet_rename", &battle_config.pet_rename, 0, 0, 1, },
{ "pet_friendly_rate", &battle_config.pet_friendly_rate, 100, 0, INT_MAX, },
diff --git a/src/map/battle.h b/src/map/battle.h
index f923e6c99..bb907d5b9 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -212,6 +212,7 @@ struct Battle_Config {
int guild_aura;
int pc_invincible_time;
+ int pet_catch_rate_official_formula;
int pet_catch_rate;
int pet_rename;
int pet_friendly_rate;