summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-28 22:18:29 +0100
committerHaru <haru@dotalux.com>2016-02-28 22:22:31 +0100
commit905b59d85b790ea57198c47e249690094b296bda (patch)
treead415f95a8ef0bc71a8a0e4aebd7828fad52a87a /src/map/pc.c
parent38df89621f9e5b4196a91f8361b4493247f41bd3 (diff)
downloadhercules-905b59d85b790ea57198c47e249690094b296bda.tar.gz
hercules-905b59d85b790ea57198c47e249690094b296bda.tar.bz2
hercules-905b59d85b790ea57198c47e249690094b296bda.tar.xz
hercules-905b59d85b790ea57198c47e249690094b296bda.zip
Changed mob mode field to 32 bit, for future expansion
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c17
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;