From 745dc5a2e2e32359e3a78cdac412e93b4ad940b5 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Sat, 15 Feb 2020 05:26:52 +0100 Subject: Remove pet_equip_min_friendly config setting --- src/map/pet.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/map/pet.c') diff --git a/src/map/pet.c b/src/map/pet.c index 6b1f3176f..a1ddec8e3 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -78,17 +78,13 @@ static int pet_hungry_val(struct pet_data *pd) static void pet_set_intimate(struct pet_data *pd, int value) { - int intimate; struct map_session_data *sd; nullpo_retv(pd); - intimate = pd->pet.intimate; sd = pd->msd; pd->pet.intimate = cap_value(value, PET_INTIMACY_NONE, PET_INTIMACY_MAX); - - if( (intimate >= battle_config.pet_equip_min_friendly && pd->pet.intimate < battle_config.pet_equip_min_friendly) || (intimate < battle_config.pet_equip_min_friendly && pd->pet.intimate >= battle_config.pet_equip_min_friendly) ) - status_calc_pc(sd,SCO_NONE); + status_calc_pc(sd, SCO_NONE); /* Pet is lost, delete the egg */ if (pd->pet.intimate == PET_INTIMACY_NONE) { -- cgit v1.2.3-60-g2f50