summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pc.c2
-rw-r--r--src/map/pc.h39
2 files changed, 4 insertions, 37 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 3146ba03e..170de63ff 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -10091,5 +10091,7 @@ void pc_defaults(void) {
pc->del_talisman = pc_del_talisman;
pc->baselevelchanged = pc_baselevelchanged;
+#if defined(RENEWAL_DROP) || defined(RENEWAL_EXP)
pc->level_penalty_mod = pc_level_penalty_mod;
+#endif
}
diff --git a/src/map/pc.h b/src/map/pc.h
index f7c67b564..ebf474823 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -683,30 +683,9 @@ enum equip_pos {
#define pc_has_permission(sd, permission) ( ((sd)->permissions&permission) != 0 )
#define pc_should_log_commands(sd) ( (sd)->group_log_command != false )
-
-
-
-
#define pc_checkoverhp(sd) ((sd)->battle_status.hp == (sd)->battle_status.max_hp)
#define pc_checkoversp(sd) ((sd)->battle_status.sp == (sd)->battle_status.max_sp)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
#define pc_readglobalreg(sd,reg) pc->readregistry(sd,reg,3)
#define pc_setglobalreg(sd,reg,val) pc->setregistry(sd,reg,val,3)
#define pc_readglobalreg_str(sd,reg) pc->readregistry_str(sd,reg,3)
@@ -720,13 +699,6 @@ enum equip_pos {
#define pc_readaccountreg2str(sd,reg) pc->readregistry_str(sd,reg,1)
#define pc_setaccountreg2str(sd,reg,val) pc->setregistry_str(sd,reg,val,1)
-
-
-
-
-
-
-
struct skill_tree_entry {
short id;
unsigned short idx;
@@ -758,15 +730,6 @@ extern struct fame_list taekwon_fame_list[MAX_FAME_LIST];
enum {ADDITEM_EXIST,ADDITEM_NEW,ADDITEM_OVERAMOUNT};
-
-
-
-
-
-
-
-
-
#if defined(RENEWAL_DROP) || defined(RENEWAL_EXP)
#endif
/*=====================================
@@ -981,7 +944,9 @@ struct pc_interface {
int (*del_talisman) (struct map_session_data *sd,int count,int type);
void (*baselevelchanged) (struct map_session_data *sd);
+#if defined(RENEWAL_DROP) || defined(RENEWAL_EXP)
int (*level_penalty_mod) (struct map_session_data *sd, struct mob_data * md, int type);
+#endif
} pc_s;
struct pc_interface *pc;