summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-06 00:15:16 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-06 00:15:16 +0000
commit6f91333809e1e19933c98cd66316bf62a17e2fbc (patch)
treec81bc2d18b22b2dd9ba8b943dad1ad73ad9bae32 /src/map/pc.c
parent4f80f6346a5628d842f86cca2f2d7404b3d65530 (diff)
downloadhercules-6f91333809e1e19933c98cd66316bf62a17e2fbc.tar.gz
hercules-6f91333809e1e19933c98cd66316bf62a17e2fbc.tar.bz2
hercules-6f91333809e1e19933c98cd66316bf62a17e2fbc.tar.xz
hercules-6f91333809e1e19933c98cd66316bf62a17e2fbc.zip
Added support for bonus bAddItemHealRate, which works for all healing items care of Epoque.
Updated some items to use bonus bAddItemHealRate, and healpower2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14559 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 4759fa4cf..75097343d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2351,6 +2351,10 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
if(sd->state.lr_flag != 2)
sd->add_heal2_rate += val;
break;
+ case SP_ADD_ITEM_HEAL_RATE:
+ if(sd->state.lr_flag != 2)
+ sd->itemhealrate2 += val;
+ break;
default:
ShowWarning("pc_bonus: unknown type %d %d !\n",type,val);
break;
@@ -6098,6 +6102,8 @@ int pc_itemheal(struct map_session_data *sd,int itemid, int hp,int sp)
// A potion produced by an Alchemist in the Fame Top 10 gets +50% effect [DracoRPG]
if (potion_flag > 1)
bonus += bonus*(potion_flag-1)*50/100;
+ //All item bonuses.
+ bonus += sd->itemhealrate2;
//Item Group bonuses
bonus += bonus*itemdb_group_bonus(sd, itemid)/100;
//Individual item bonuses.