summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-04 20:04:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-04 20:04:16 +0000
commit432cfb3f42c628834d9b6cc5653c78ffbfda037c (patch)
tree2d51e350710f4945e0dff6d8ecd9a6cbf2ecb5a0 /src/map/status.c
parentbb78f61a194f92934784d108cb8e54e391c570aa (diff)
downloadhercules-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/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 8b2942add..5ecb9a93b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1539,7 +1539,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
+ sizeof(sd->magic_addsize)
+ sizeof(sd->critaddrace)
+ sizeof(sd->expaddrace)
- + sizeof(sd->itemhealrate)
+ + sizeof(sd->itemgrouphealrate)
+ sizeof(sd->sp_gain_race)
);
@@ -1578,6 +1578,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
+ sizeof(sd->add_dmg)
+ sizeof(sd->add_mdmg)
+ sizeof(sd->add_drop)
+ + sizeof(sd->itemhealrate)
);
// vars zeroing. ints, shorts, chars. in that order.