From 2bee596ad0bb84a92d878d3d76993ba365c70e2b Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 25 Aug 2019 19:40:47 +0200 Subject: Fix the intimacy requirement check for the homunculus ultimate skills Signed-off-by: Haru --- src/map/homunculus.c | 4 ++-- src/map/homunculus.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') 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; -- cgit v1.2.3-70-g09d2