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/mob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/mob.cpp') diff --git a/src/map/mob.cpp b/src/map/mob.cpp index a6070f0..be9e71d 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -2616,7 +2616,8 @@ int mob_damage(struct block_list *src, struct mob_data *md, int damage, } } if (flag) // 各自所得 - pc_gainexp(tmpsd[i], base_exp, job_exp); + pc_gainexp_reason(tmpsd[i], base_exp, job_exp, + PC_GAINEXP_REASON::KILLING); } // 公平分配 for (int i = 0; i < pnum; i++) -- cgit v1.2.3-70-g09d2