summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-19 13:01:08 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-19 13:01:08 +0000
commitf0d21c05c6cd32a9ed35c2edd4c7274b4f56a796 (patch)
treed78ba6b2e5f7026a013ee548c1a336ec55392265 /src
parent66ecfa2613dd24223c92d5cb41919c07ce638105 (diff)
downloadhercules-f0d21c05c6cd32a9ed35c2edd4c7274b4f56a796.tar.gz
hercules-f0d21c05c6cd32a9ed35c2edd4c7274b4f56a796.tar.bz2
hercules-f0d21c05c6cd32a9ed35c2edd4c7274b4f56a796.tar.xz
hercules-f0d21c05c6cd32a9ed35c2edd4c7274b4f56a796.zip
Updated HLIF_BRAIN skill
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8363 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 29027724e..ff770f624 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2236,15 +2236,18 @@ int status_calc_homunculus(struct homun_data *hd, int first)
if((skill = merc_hom_checkskill(hd->master,HVAN_INSTRUCT)) > 0)
{
- status->int_+= 1 +skill/2 +skill/4 +skill/5;
- status->str += 1 +2*(skill/3) +skill/4;
+ status->int_ += 1 +skill/2 -skill/4 +skill/5;
+ status->str += 1 +2*(skill/3) +skill/4;
}
if((skill=merc_hom_checkskill(sd,HAMI_SKIN)) > 0)
status->max_hp += skill * 2 * status->max_hp / 100;
if((skill = merc_hom_checkskill(hd->master,HLIF_BRAIN)) > 0)
- status->max_sp += skill * 1 * status->max_sp / 100 ;
+ {
+ int p = 1 +skill/2 -skill/4 +skill/5;
+ status->max_sp += p * status->max_sp / 100 ;
+ }
if (first) {
hd->battle_status.hp = hom->hp ;