From dc5c2d65e81b648908cfdd45bbe718832518a5a3 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Fri, 14 Feb 2020 07:39:35 +0100 Subject: Adjust pet catch rate calculation Thanks to @hemagx. --- src/map/pet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pet.c') 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) -- cgit v1.2.3-60-g2f50