summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-18 18:15:31 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-18 18:15:31 +0000
commitb687d790d516bf46dd03767f0e479b4a6a41eac2 (patch)
treebbe7f0bfd5049093d03d85e6e5c0e18d9c082762 /src/map/pc.c
parent54d59b3f91a08ffc70e6a2f22776a1de25f89d93 (diff)
downloadhercules-b687d790d516bf46dd03767f0e479b4a6a41eac2.tar.gz
hercules-b687d790d516bf46dd03767f0e479b4a6a41eac2.tar.bz2
hercules-b687d790d516bf46dd03767f0e479b4a6a41eac2.tar.xz
hercules-b687d790d516bf46dd03767f0e479b4a6a41eac2.zip
Added 2 new item bonuses as per kenpachi's request:
- bonus2 bHPGainRaceAttack - bonus2 bSPGainRaceAttack git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15608 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index f20735167..9424c834b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2971,7 +2971,14 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
if(sd->state.lr_flag != 2)
sd->ignore_def[type2] += val;
break;
-
+ case SP_SP_GAIN_RACE_ATTACK:
+ if(sd->state.lr_flag != 2)
+ sd->sp_gain_race_attack[type2] = cap_value(sd->sp_gain_race_attack[type2] + val, 0, INT16_MAX);
+ break;
+ case SP_HP_GAIN_RACE_ATTACK:
+ if(sd->state.lr_flag != 2)
+ sd->hp_gain_race_attack[type2] = cap_value(sd->hp_gain_race_attack[type2] + val, 0, INT16_MAX);
+ break;
default:
ShowWarning("pc_bonus2: unknown type %d %d %d!\n",type,type2,val);
break;