summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-02-14 07:39:35 +0100
committerHaru <haru@dotalux.com>2020-04-05 21:20:35 +0200
commitdc5c2d65e81b648908cfdd45bbe718832518a5a3 (patch)
treed3d34b09c94cf3e024b39145c1d3dd768c112e3e /src
parent3bdf77ae814ae0c15cba32acfcb82f591fa848c2 (diff)
downloadhercules-dc5c2d65e81b648908cfdd45bbe718832518a5a3.tar.gz
hercules-dc5c2d65e81b648908cfdd45bbe718832518a5a3.tar.bz2
hercules-dc5c2d65e81b648908cfdd45bbe718832518a5a3.tar.xz
hercules-dc5c2d65e81b648908cfdd45bbe718832518a5a3.zip
Adjust pet catch rate calculation
Thanks to @hemagx.
Diffstat (limited to 'src')
-rw-r--r--src/map/pet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 9384b3134..c204c8930 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -592,7 +592,7 @@ static int pet_catch_process2(struct map_session_data *sd, int target_id)
return 1;
}
- pet_catch_rate = (pet->db[i].capture + (sd->status.base_level - md->level)*30 + sd->battle_status.luk*20)*(200 - get_percentage(md->status.hp, md->status.max_hp))/100;
+ pet_catch_rate = pet->db[i].capture * (100 - get_percentage(md->status.hp, md->status.max_hp)) / 100 + pet->db[i].capture;
if(pet_catch_rate < 1) pet_catch_rate = 1;
if(battle->bc->pet_catch_rate != 100)