summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-08-25 19:40:47 +0200
committerHaru <haru@dotalux.com>2019-08-26 01:22:12 +0200
commit2bee596ad0bb84a92d878d3d76993ba365c70e2b (patch)
treefcaf306904425bd7056900ff21a424d6dea870a4 /src
parent6d04c0c88e7adc85fc3bf6ab67a84ba159450bfe (diff)
downloadhercules-2bee596ad0bb84a92d878d3d76993ba365c70e2b.tar.gz
hercules-2bee596ad0bb84a92d878d3d76993ba365c70e2b.tar.bz2
hercules-2bee596ad0bb84a92d878d3d76993ba365c70e2b.tar.xz
hercules-2bee596ad0bb84a92d878d3d76993ba365c70e2b.zip
Fix the intimacy requirement check for the homunculus ultimate skills
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/homunculus.c4
-rw-r--r--src/map/homunculus.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c
index 9f7ae0bac..9c0460320 100644
--- a/src/map/homunculus.c
+++ b/src/map/homunculus.c
@@ -258,7 +258,7 @@ static int homunculus_calc_skilltree(struct homun_data *hd, int flag_evolve)
for( i = 0; i < MAX_SKILL_TREE && ( id = homun->dbs->skill_tree[c][i].id ) > 0; i++ ) {
if( hd->homunculus.hskill[ id - HM_SKILLBASE ].id )
continue; //Skill already known.
- j = ( flag_evolve ) ? 10 : hd->homunculus.intimacy;
+ j = ( flag_evolve ) ? 1000 : hd->homunculus.intimacy;
if( j < homun->dbs->skill_tree[c][i].intimacylv )
continue;
if(!battle_config.skillfree) {
@@ -1317,7 +1317,7 @@ static bool homunculus_read_skill_db_sub(char *split[], int columns, int current
homun->dbs->skill_tree[classid][j].need[k].lv = atoi(split[3+k*2+minJobLevelPresent+1]);
}
- homun->dbs->skill_tree[classid][j].intimacylv = atoi(split[13+minJobLevelPresent]);
+ homun->dbs->skill_tree[classid][j].intimacylv = atoi(split[13+minJobLevelPresent]) * 100;
return true;
}
diff --git a/src/map/homunculus.h b/src/map/homunculus.h
index bcbda7e6c..5bb4334cb 100644
--- a/src/map/homunculus.h
+++ b/src/map/homunculus.h
@@ -133,7 +133,7 @@ struct homun_skill_tree_entry {
short id;
unsigned char max;
unsigned char joblv;
- short intimacylv;
+ int intimacylv;
struct {
short id;
unsigned char lv;