diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-01-05 14:24:03 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-01-05 14:24:03 +0000 |
commit | 43734bbbac5d8d5c107fdc868dff43e70b728e2c (patch) | |
tree | 65af7db466574bae3802788c3c4d944a8aa215db | |
parent | 1c1d8d3aba481db177c72800d863d1fc0c840058 (diff) | |
download | tmwa-43734bbbac5d8d5c107fdc868dff43e70b728e2c.tar.gz tmwa-43734bbbac5d8d5c107fdc868dff43e70b728e2c.tar.bz2 tmwa-43734bbbac5d8d5c107fdc868dff43e70b728e2c.tar.xz tmwa-43734bbbac5d8d5c107fdc868dff43e70b728e2c.zip |
Adjust death penalty to not apply below level 20
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index e07245d..41862e3 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5108,8 +5108,8 @@ int pc_damage(struct block_list *src,struct map_session_data *sd,int damage) sd->dev.val1[i] = sd->dev.val2[i]=0; } - if(battle_config.death_penalty_type>0) { // changed penalty options, added death by player if pk_mode [Valaris] - if(!map[sd->bl.m].flag.nopenalty && !map[sd->bl.m].flag.gvg){ // only novices will recieve no penalty + if(battle_config.death_penalty_type>0 && sd->status.base_level >= 20) { // changed penalty options, added death by player if pk_mode [Valaris] + if(!map[sd->bl.m].flag.nopenalty && !map[sd->bl.m].flag.gvg){ if(battle_config.death_penalty_type==1 && battle_config.death_penalty_base > 0) sd->status.base_exp -= (double)pc_nextbaseexp(sd) * (double)battle_config.death_penalty_base/10000; if(battle_config.pk_mode && src && src->type==BL_PC) |