summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 23:45:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 23:45:53 +0000
commit72fc9343c79775d3c9df910ce78f5b0ee274cb81 (patch)
treef0a39b82973db0fd83c29587fda957276e95dcc1 /src/map/mercenary.c
parentd64c6ba4231c3802ba478c45ebb3b4fda4d8ed83 (diff)
downloadhercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.gz
hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.bz2
hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.xz
hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.zip
- Corrected the @follow timer not being deleted on logout.
- Applied the homunculus code fixes provided by Toms. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7820 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index a415fb7c7..9521f7071 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -54,14 +54,6 @@ void merc_load_exptables(void);
int mercskill_castend_id( int tid, unsigned int tick, int id,int data );
static int merc_hom_hungry(int tid,unsigned int tick,int id,int data);
-int do_init_merc (void)
-{
- merc_load_exptables();
- memset(homunculus_db,0,sizeof(homunculus_db)); //[orn]
- read_homunculusdb(); //[orn]
- return 0;
-}
-
static unsigned long hexptbl[MAX_LEVEL+1];
void merc_load_exptables(void)
@@ -1089,4 +1081,15 @@ int read_homunculusdb()
return 0;
}
+int do_init_merc (void)
+{
+ merc_load_exptables();
+ memset(homunculus_db,0,sizeof(homunculus_db)); //[orn]
+ read_homunculusdb(); //[orn]
+ // Add homunc timer function to timer func list [Toms]
+ add_timer_func_list(merc_natural_heal, "merc_natural_heal");
+ add_timer_func_list(merc_hom_hungry, "merc_hom_hungry");
+ return 0;
+}
+
int do_final_merc (void);