summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-07 07:28:20 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-07 07:28:20 +0000
commitec655a58ffb1dc5d37a504aaac51f5393a1a81fb (patch)
treec3ae2a16fe13e388c611f1d9ef2003b15db01c54 /src/map/pc.c
parent33c337fcfdde9e71a15b4f6856d1c22ce1b6a9bc (diff)
downloadhercules-ec655a58ffb1dc5d37a504aaac51f5393a1a81fb.tar.gz
hercules-ec655a58ffb1dc5d37a504aaac51f5393a1a81fb.tar.bz2
hercules-ec655a58ffb1dc5d37a504aaac51f5393a1a81fb.tar.xz
hercules-ec655a58ffb1dc5d37a504aaac51f5393a1a81fb.zip
* Added 'bDelayrate' and changed Phen card, Marduk Card and Berzebub Card's effects to use this
* Some tidying up of skill_castfix and skill_delayfix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@928 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 7fff1f1ae..eb22b8376 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1296,6 +1296,7 @@ int pc_calcstatus(struct map_session_data* sd,int first)
sd->hprate=battle_config.hp_rate;
sd->sprate=battle_config.sp_rate;
sd->castrate=100;
+ sd->delayrate=100;
sd->dsprate=100;
sd->base_atk=0;
sd->arrow_atk=0;
@@ -2722,6 +2723,10 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
if(sd->status.weapon == 11 && sd->state.lr_flag != 2)
sd->atk_rate += val;
break;
+ case SP_DELAYRATE:
+ if(sd->state.lr_flag != 2)
+ sd->delayrate+=val;
+ break;
default:
if(battle_config.error_log)
printf("pc_bonus: unknown type %d %d !\n",type,val);