From 73ed64203442f42a21f8f98d25f7c0fade9262dc Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Tue, 14 May 2013 11:29:11 +1200 Subject: Add SHAREXP distinction, create UNKNOWNXP default Previously, KILLXP was being set as the catchall, which caused false positives for XP sharing. Update documentation accordingly. log version incremented to 4. --- src/map/pc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map/pc.cpp') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 255dc90..bcac46f 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3114,7 +3114,7 @@ int pc_checkjoblevelup(struct map_session_data *sd) int pc_gainexp(struct map_session_data *sd, int base_exp, int job_exp) { return pc_gainexp_reason(sd, base_exp, job_exp, - PC_GAINEXP_REASON::KILLING); + PC_GAINEXP_REASON::UNKNOWN); } int pc_gainexp_reason(struct map_session_data *sd, int base_exp, int job_exp, @@ -3133,6 +3133,9 @@ int pc_gainexp_reason(struct map_session_data *sd, int base_exp, int job_exp, "KILLXP", "HEALXP", "SCRIPTXP", + "SHAREXP", + /* Insert new types here */ + "UNKNOWNXP" }}; MAP_LOG_PC(sd, "GAINXP %d %d %s", base_exp, job_exp, reasons[reason]); -- cgit v1.2.3-60-g2f50