summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-29 12:21:59 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-29 12:21:59 +0000
commit560fb33ed7fc650fd7f5a4e5f4eec423202ca6d5 (patch)
tree1f4dd0d74e98c85ec804f4921ddb7412183d2f20 /src/map/pc.c
parent228fb34bfaa18f1de0ab909f8d2df4819a6018e9 (diff)
downloadhercules-560fb33ed7fc650fd7f5a4e5f4eec423202ca6d5.tar.gz
hercules-560fb33ed7fc650fd7f5a4e5f4eec423202ca6d5.tar.bz2
hercules-560fb33ed7fc650fd7f5a4e5f4eec423202ca6d5.tar.xz
hercules-560fb33ed7fc650fd7f5a4e5f4eec423202ca6d5.zip
* Added new bonuses bHealPower and bHealPower2.
* Heal skills code clean up. - bSkillHeal can affect offensive heal now. - bSkillHeal2 can affect AppleIdun and SlimPitcher now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13820 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 720c252d8..5606eb7ae 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2179,6 +2179,14 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
if(!sd->state.lr_flag)
sd->hp_gain_value += val;
break;
+ case SP_ADD_HEAL_RATE:
+ if(sd->state.lr_flag != 2)
+ sd->add_heal_rate += val;
+ break;
+ case SP_ADD_HEAL2_RATE:
+ if(sd->state.lr_flag != 2)
+ sd->add_heal2_rate += val;
+ break;
default:
ShowWarning("pc_bonus: unknown type %d %d !\n",type,val);
break;
@@ -5235,7 +5243,7 @@ int pc_skillatk_bonus(struct map_session_data *sd, int skill_num)
int pc_skillheal_bonus(struct map_session_data *sd, int skill_num)
{
- int i, bonus = 0;
+ int i, bonus = sd->add_heal_rate;
ARR_FIND(0, ARRAYLENGTH(sd->skillheal), i, sd->skillheal[i].id == skill_num);
if( i < ARRAYLENGTH(sd->skillheal) ) bonus += sd->skillheal[i].val;
@@ -5245,7 +5253,7 @@ int pc_skillheal_bonus(struct map_session_data *sd, int skill_num)
int pc_skillheal2_bonus(struct map_session_data *sd, int skill_num)
{
- int i, bonus = 0;
+ int i, bonus = sd->add_heal2_rate;
ARR_FIND(0, ARRAYLENGTH(sd->skillheal2), i, sd->skillheal2[i].id == skill_num);
if( i < ARRAYLENGTH(sd->skillheal2) ) bonus += sd->skillheal2[i].val;