summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-02-15 05:26:52 +0100
committerHaru <haru@dotalux.com>2020-04-05 21:20:35 +0200
commit745dc5a2e2e32359e3a78cdac412e93b4ad940b5 (patch)
tree1329cd162090140adac4324c0f34ff3bdd96e779 /src/map/pet.c
parent7b33fb29e0b5014e9765ef091c6c27911c2ea636 (diff)
downloadhercules-745dc5a2e2e32359e3a78cdac412e93b4ad940b5.tar.gz
hercules-745dc5a2e2e32359e3a78cdac412e93b4ad940b5.tar.bz2
hercules-745dc5a2e2e32359e3a78cdac412e93b4ad940b5.tar.xz
hercules-745dc5a2e2e32359e3a78cdac412e93b4ad940b5.zip
Remove pet_equip_min_friendly config setting
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c6
1 files changed, 1 insertions, 5 deletions
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) {