diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-08 21:39:57 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-08 21:39:57 +0000 |
commit | eeea994eea737a7715cd321024430800c4186c84 (patch) | |
tree | c457048bbf927b7ee0c887cde7da4a0913d63bd4 /src/map/mercenary.c | |
parent | 975e208be2fc880de327d36607a6cc92a5d58c6a (diff) | |
download | hercules-eeea994eea737a7715cd321024430800c4186c84.tar.gz hercules-eeea994eea737a7715cd321024430800c4186c84.tar.bz2 hercules-eeea994eea737a7715cd321024430800c4186c84.tar.xz hercules-eeea994eea737a7715cd321024430800c4186c84.zip |
* Delayed the check for required items when a skill is cast to when they are consumed. Now skills only fail due to lack of items after being cast.
- Please make a bug report if you know of any skill that doesn't work like this in official.
* Fixed hp of other party members not being sent when you join a party.
* Removed unused global array names_id and renamed some structures that are used with variables of the same name.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11384 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r-- | src/map/mercenary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c index b23669955..1477797c5 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -40,7 +40,7 @@ //Better equiprobability than rand()% [orn] #define rand(a, b) (a+(int) ((float)(b-a+1)*rand()/(RAND_MAX+1.0))) -struct homunculus_db homunculus_db[MAX_HOMUNCULUS_CLASS]; //[orn] +struct s_homunculus_db homunculus_db[MAX_HOMUNCULUS_CLASS]; //[orn] struct skill_tree_entry hskill_tree[MAX_HOMUNCULUS_CLASS][MAX_SKILL_TREE]; static int merc_hom_hungry(int tid,unsigned int tick,int id,int data); @@ -812,7 +812,7 @@ void merc_hom_revive(struct homun_data *hd, unsigned int hp, unsigned int sp) void merc_reset_stats(struct homun_data *hd) { //Resets a homunc stats back to zero (but doesn't touches hunger or intimacy) - struct homunculus_db *db; + struct s_homunculus_db *db; struct s_homunculus *hom; struct h_stats *base; hom = &hd->homunculus; @@ -892,7 +892,7 @@ int read_homunculusdb(void) int j = 0; const char *filename[]={"homunculus_db.txt","homunculus_db2.txt"}; char *str[50]; - struct homunculus_db *db; + struct s_homunculus_db *db; memset(homunculus_db,0,sizeof(homunculus_db)); for(i = 0; i<2; i++) |