From 59fcf9c26e7c9d5cf65b60d0fb148b5214143711 Mon Sep 17 00:00:00 2001 From: toms Date: Sat, 19 Aug 2006 11:32:41 +0000 Subject: Added homunculus_friendly_rate battle config git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8361 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mercenary.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/mercenary.c') diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 118bda037..472ac285c 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -393,6 +393,9 @@ int merc_hom_gainexp(struct homun_data *hd,int exp) // Return then new value int merc_hom_increase_intimacy(struct homun_data * hd, unsigned int value) { + if (battle_config.homunculus_friendly_rate != 100) + value = (value * battle_config.homunculus_friendly_rate) / 100; + if (hd->master->homunculus.intimacy + value <= 100000) hd->master->homunculus.intimacy += value; else -- cgit v1.2.3-60-g2f50