summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-05-14 11:29:11 +1200
committerFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-05-14 11:29:11 +1200
commit73ed64203442f42a21f8f98d25f7c0fade9262dc (patch)
tree2e6a1d709fcb2a9bc47793cf8b452bd1fc1ab8c0 /src/map/pc.cpp
parent7db0a38b4ec702011d67b37160665499a8c837c1 (diff)
downloadtmwa-73ed64203442f42a21f8f98d25f7c0fade9262dc.tar.gz
tmwa-73ed64203442f42a21f8f98d25f7c0fade9262dc.tar.bz2
tmwa-73ed64203442f42a21f8f98d25f7c0fade9262dc.tar.xz
tmwa-73ed64203442f42a21f8f98d25f7c0fade9262dc.zip
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.
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp5
1 files changed, 4 insertions, 1 deletions
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]);