summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorvalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-21 20:31:19 +0000
committervalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-21 20:31:19 +0000
commit88edb9b8ba85d40dc47fd259c49e4638a3175348 (patch)
tree622e6e37aaab07858b19fdf05991c5fcc5aea5f0 /src/map/pc.c
parentc8a67180701700f070c4437b5ea2b9e3d9eaa8e2 (diff)
downloadhercules-88edb9b8ba85d40dc47fd259c49e4638a3175348.tar.gz
hercules-88edb9b8ba85d40dc47fd259c49e4638a3175348.tar.bz2
hercules-88edb9b8ba85d40dc47fd259c49e4638a3175348.tar.xz
hercules-88edb9b8ba85d40dc47fd259c49e4638a3175348.zip
Added bonus bClassChange,%; to randomly transform monster into another monster.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@302 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 799fc2f59..b2fb1e120 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2436,6 +2436,11 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
sd->unbreakable += val;
}
break;
+ case SP_CLASSCHANGE: // [Valaris]
+ if(sd->state.lr_flag !=2){
+ sd->classchange=val;
+ }
+ break;
default:
if(battle_config.error_log)
printf("pc_bonus: unknown type %d %d !\n",type,val);
@@ -2620,8 +2625,8 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
if(sd->state.lr_flag !=2){
sd->random_attack_increase_add = type2;
sd->random_attack_increase_per += val;
+ }
break;
- } // end addition
default:
if(battle_config.error_log)
printf("pc_bonus2: unknown type %d %d %d!\n",type,type2,val);