summaryrefslogtreecommitdiff
path: root/conf
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 /conf
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 'conf')
-rw-r--r--conf/map/battle/pet.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/map/battle/pet.conf b/conf/map/battle/pet.conf
index ed784d49c..5797bb2a5 100644
--- a/conf/map/battle/pet.conf
+++ b/conf/map/battle/pet.conf
@@ -32,6 +32,14 @@
// assume unit types (1: Pc, 2: Mob, 4: Pet, 8: Homun, 16: Mercenary)
//=========================================================================
+// Use the offical formula to calculate the pet catch rate? (Note 1)
+// Official formula:
+// CatchRate = CaptureRate * (100 - 100 * MonsterHP / MonsterMaxHP) / 100 + CaptureRate
+// Custum *Athena formula:
+// CatchRate = (CaptureRate + (CharacterBaseLevel - MonsterLevel) * 30 + CharacterLuk * 20) * (200 - 100 * MonsterHP / MonsterMaxHP) / 100
+// (CaptureRate is defined in db/(pre-)re/pet_db.conf.)
+pet_catch_rate_official_formula: true
+
// Rate for catching pets (Note 2)
pet_catch_rate: 100