diff options
author | Haru <haru@dotalux.com> | 2016-02-28 22:22:52 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-28 22:22:52 +0100 |
commit | 3305409b7208befa9f5d26620d30b3490365fc21 (patch) | |
tree | ad415f95a8ef0bc71a8a0e4aebd7828fad52a87a /src/map/pc.c | |
parent | 21f992314cde9243474bb171d09ec3d971b07214 (diff) | |
parent | 905b59d85b790ea57198c47e249690094b296bda (diff) | |
download | hercules-3305409b7208befa9f5d26620d30b3490365fc21.tar.gz hercules-3305409b7208befa9f5d26620d30b3490365fc21.tar.bz2 hercules-3305409b7208befa9f5d26620d30b3490365fc21.tar.xz hercules-3305409b7208befa9f5d26620d30b3490365fc21.zip |
Merged pull request #1093 - NoKnockback mode
Closes #1093 as merged
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index a79247134..93f23c584 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -10539,11 +10539,18 @@ void pc_del_charm(struct map_session_data *sd, int count, int type) clif->spiritcharm(sd); } -/*========================================== - * Renewal EXP/Itemdrop rate modifier base on level penalty - * 1=exp 2=itemdrop - *------------------------------------------*/ -int pc_level_penalty_mod(int diff, unsigned char race, unsigned short mode, int type) { + +/** + * Renewal EXP/Itemdrop rate modifier base on level penalty. + * + * @param diff Level difference. + * @param race Monster race. + * @param mode Monster mode. + * @param type Modifier type (1=exp 2=itemdrop) + * @return The percent rate modifier (100 = 100%) + */ +int pc_level_penalty_mod(int diff, unsigned char race, uint32 mode, int type) +{ #if defined(RENEWAL_DROP) || defined(RENEWAL_EXP) int rate = 100, i; |