diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-04 20:04:16 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-04 20:04:16 +0000 |
commit | 432cfb3f42c628834d9b6cc5653c78ffbfda037c (patch) | |
tree | 2d51e350710f4945e0dff6d8ecd9a6cbf2ecb5a0 /src/map/map.h | |
parent | bb78f61a194f92934784d108cb8e54e391c570aa (diff) | |
download | hercules-432cfb3f42c628834d9b6cc5653c78ffbfda037c.tar.gz hercules-432cfb3f42c628834d9b6cc5653c78ffbfda037c.tar.bz2 hercules-432cfb3f42c628834d9b6cc5653c78ffbfda037c.tar.xz hercules-432cfb3f42c628834d9b6cc5653c78ffbfda037c.zip |
- Changed function itemdb_group to itemdb_group_bonus, it now calculates the total group bonuses of a player for a given item.
- Changed itemhealrate to itemgrouphealrate, added a structure itemhealrate to allow storing item-healing bonuses per item.
- Modified bAddItemHealRate so it can receive both item-id and item-group values (since the first item-id is +500, there's no risk of mixing them up).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8136 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index a56f14aaa..68fd25d7b 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -629,7 +629,7 @@ struct map_session_data { int magic_addsize[3];
int critaddrace[RC_MAX];
int expaddrace[RC_MAX];
- int itemhealrate[MAX_ITEMGROUP];
+ int itemgrouphealrate[MAX_ITEMGROUP];
short sp_gain_race[RC_MAX];
// zeroed arrays end here.
// zeroed structures start here
@@ -651,6 +651,10 @@ struct map_session_data { short id, group;
int race, rate;
} add_drop[MAX_PC_BONUS];
+ struct {
+ int nameid;
+ int rate;
+ } itemhealrate[MAX_PC_BONUS];
// zeroed structures end here
// zeroed vars start here.
int arrow_atk,arrow_ele,arrow_cri,arrow_hit;
|