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/party.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/party.cpp') diff --git a/src/map/party.cpp b/src/map/party.cpp index 5f04b58..f737601 100644 --- a/src/map/party.cpp +++ b/src/map/party.cpp @@ -717,7 +717,8 @@ int party_exp_share(struct party *p, int mapid, int base_exp, int job_exp) return 0; for (i = 0; i < MAX_PARTY; i++) if ((sd = p->member[i].sd) != NULL && sd->bl.m == mapid) - pc_gainexp(sd, base_exp / c + 1, job_exp / c + 1); + pc_gainexp_reason(sd, base_exp / c + 1, job_exp / c + 1, + PC_GAINEXP_REASON::SHARING); return 0; } -- cgit v1.2.3-70-g09d2