diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-05-08 21:41:21 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-05-08 21:41:21 +0800 |
commit | f4f4b3310d83c10f72af525d86c58053411df5da (patch) | |
tree | 453c3b486786e9a8a484ff64b57968c225f5fcd0 /src/map/homunculus.c | |
parent | db42e06f31fe98a28dce8cc05c480b897ab8cb99 (diff) | |
download | hercules-f4f4b3310d83c10f72af525d86c58053411df5da.tar.gz hercules-f4f4b3310d83c10f72af525d86c58053411df5da.tar.bz2 hercules-f4f4b3310d83c10f72af525d86c58053411df5da.tar.xz hercules-f4f4b3310d83c10f72af525d86c58053411df5da.zip |
Homonculus S Update
-Updated and fixed Eira skills to official behavior.
Fixed Bug#8168
-http://hercules.ws/board/tracker/issue-8168-crush-strike/?gopid=22703#entry22703
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r-- | src/map/homunculus.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c index 94c2ae5b1..ff9f7a5b1 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -1182,6 +1182,24 @@ bool homunculus_read_skill_db_sub(char* split[], int columns, int current) { return true; } +int8 homunculus_get_intimacy_grade(struct homun_data *hd) { + unsigned int val = hd->homunculus.intimacy / 100; + if( val > 100 ) { + if( val > 250 ) { + if( val > 750 ) { + if ( val > 900 ) + return 4; + else + return 3; + } else + return 2; + } else + return 1; + } + + return 0; +} + void homunculus_skill_db_read(void) { memset(homun->skill_tree,0,sizeof(homun->skill_tree)); sv->readdb(map->db_path, "homun_skill_tree.txt", ',', 13, 15, -1, homun->read_skill_db_sub); @@ -1303,4 +1321,5 @@ void homunculus_defaults(void) { homun->exp_db_read = homunculus_exp_db_read; homun->addspiritball = homunculus_addspiritball; homun->delspiritball = homunculus_delspiritball; + homun->get_intimacy_grade = homunculus_get_intimacy_grade; } |