summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-31 14:19:53 -0300
committershennetsind <ind@henn.et>2013-07-31 14:19:53 -0300
commite914c4806f72678babe646c7651bbdbbf78221fd (patch)
tree0f28d7e06be0241bbbba47e5cea99ab08fcdcc54 /src/map/pc.c
parentf653ede9bf4ae510b0e673f308410637a6b0cba7 (diff)
downloadhercules-e914c4806f72678babe646c7651bbdbbf78221fd.tar.gz
hercules-e914c4806f72678babe646c7651bbdbbf78221fd.tar.bz2
hercules-e914c4806f72678babe646c7651bbdbbf78221fd.tar.xz
hercules-e914c4806f72678babe646c7651bbdbbf78221fd.zip
Fixed Bug #7453
Added the missing support for conf/battle/gm.conf::atcommand_mobinfo_type on @mobinfo (partially from rathena) Modified @ii to stop always displaying 'monsters dont drop this item' while the configuration is on. Special Thanks to Napster. http://hercules.ws/board/tracker/issue-7453-mobinfo-iteminfo-not-showing-the-correct-information-depending-the-level/ Follow up 2fbec282b9b3eb84f710d5537f70e6bc221187b3 Missing messages.conf entry Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 9984cb7d7..48172ba5c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -9609,14 +9609,9 @@ int pc_del_charm(struct map_session_data *sd,int count,int type)
* Renewal EXP/Itemdrop rate modifier base on level penalty
* 1=exp 2=itemdrop
*------------------------------------------*/
-int pc_level_penalty_mod(struct map_session_data *sd, struct mob_data *md, int type)
+int pc_level_penalty_mod(int diff, unsigned char race, unsigned short mode, int type)
{
- int diff, rate = 100, i;
-
- nullpo_ret(sd);
- nullpo_ret(md);
-
- diff = md->level - sd->status.base_level;
+ int rate = 100, i;
if( diff < 0 )
diff = MAX_LEVEL + ( ~diff + 1 );
@@ -9624,8 +9619,8 @@ int pc_level_penalty_mod(struct map_session_data *sd, struct mob_data *md, int t
for(i=0; i<RC_MAX; i++){
int tmp;
- if( md->status.race != i ){
- if( md->status.mode&MD_BOSS && i < RC_BOSS )
+ if( race != i ){
+ if( mode&MD_BOSS && i < RC_BOSS )
i = RC_BOSS;
else if( i <= RC_BOSS )
continue;