diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-10 23:34:35 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-10 23:34:35 +0000 |
commit | 1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8 (patch) | |
tree | 0d86857c93f00868dc755cd6332516fa41fb01d0 /src/map/mercenary.h | |
parent | aa8f497e6714b4f93c6ea81a99ebd96d0c3501ef (diff) | |
download | hercules-1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8.tar.gz hercules-1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8.tar.bz2 hercules-1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8.tar.xz hercules-1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8.zip |
Code cleanup on homunc, they stay in memory until player disconnect or homunc destruction
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8241 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.h')
-rw-r--r-- | src/map/mercenary.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/mercenary.h b/src/map/mercenary.h index d81cb9be7..aa07538ff 100644 --- a/src/map/mercenary.h +++ b/src/map/mercenary.h @@ -46,7 +46,8 @@ enum { SP_INTIMATE = 0x100,
SP_HUNGRY = 0x200
};
-
+// merc_is_hom_alive(struct homun_data *)
+#define merc_is_hom_active(x) (x && x->master && x->master->homunculus.vaporize != 1 && x->battle_status.hp != 0)
int do_init_merc(void);
int merc_hom_recv_data(int account_id, struct s_homunculus *sh, int flag); //albator
void merc_load_sub(struct homun_data *hd, struct map_session_data *sd);
@@ -79,3 +80,4 @@ int read_homunculusdb(void); int merc_hom_increase_intimacy(struct homun_data * hd, unsigned int value);
int merc_hom_decrease_intimacy(struct homun_data * hd, unsigned int value);
int merc_skill_tree_get_max(int id, int b_class);
+int merc_hom_data_init(struct map_session_data *sd);
|