summaryrefslogtreecommitdiff
path: root/src/map/homunculus.h
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-23 18:15:21 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-23 18:15:21 +0000
commitefbd5d0dd7dbf038333d65d59d0becad59e6e2a4 (patch)
treed5b149d3025ef79222eeaa6c34eb976799649b02 /src/map/homunculus.h
parent7298dd6e6f12729de1571628781c3945ae86f31e (diff)
downloadhercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.tar.gz
hercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.tar.bz2
hercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.tar.xz
hercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.zip
Partial fix for bugreport:4337.
A new field was added to homun_skill_tree.txt containing the minimum level of intimacy to unlock a skill. This is used in some skills where the homunculus has to reach a amount of 910 of intimacy. The default value is 0 and it should only affect evolved homunculus. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16954 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/homunculus.h')
-rw-r--r--src/map/homunculus.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/map/homunculus.h b/src/map/homunculus.h
index fb18d3394..e46420692 100644
--- a/src/map/homunculus.h
+++ b/src/map/homunculus.h
@@ -49,6 +49,18 @@ struct homun_data {
int spiritball; //for homun S [lighta]
};
+#define MAX_HOM_SKILL_REQUIRE 5
+struct homun_skill_tree_entry {
+ short id;
+ unsigned char max;
+ unsigned char joblv;
+ short intimacylv;
+ struct {
+ short id;
+ unsigned char lv;
+ } need[MAX_HOM_SKILL_REQUIRE];
+}; // Celest
+
#define HOM_EVO 0x100 //256
#define HOM_S 0x200 //512
@@ -84,7 +96,7 @@ int hom_class2mapid(int hom_class);
void merc_damage(struct homun_data *hd);
int merc_hom_dead(struct homun_data *hd);
void merc_hom_skillup(struct homun_data *hd,int skillnum);
-int merc_hom_calc_skilltree(struct homun_data *hd);
+int merc_hom_calc_skilltree(struct homun_data *hd, int flag_evolve);
int merc_hom_checkskill(struct homun_data *hd,int skill_id);
int merc_hom_gainexp(struct homun_data *hd,int exp);
int merc_hom_levelup(struct homun_data *hd);