mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Update exp.cpp
This commit is contained in:
parent
407ceac2bb
commit
73f5fcd6d7
@ -805,15 +805,11 @@ void Client::SetEXP(uint64 set_exp, uint64 set_aaxp, bool isrezzexp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (parse->PlayerHasQuestSub(EVENT_EXP_GAIN) && m_pp.exp != set_exp) {
|
if (parse->PlayerHasQuestSub(EVENT_EXP_GAIN) && m_pp.exp != set_exp) {
|
||||||
const auto exp_value = set_exp - m_pp.exp;
|
parse->EventPlayer(EVENT_EXP_GAIN, this, std::to_string(set_exp - m_pp.exp), 0);
|
||||||
const auto export_string = fmt::format("{}", exp_value);
|
|
||||||
parse->EventPlayer(EVENT_EXP_GAIN, this, export_string, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parse->PlayerHasQuestSub(EVENT_AA_EXP_GAIN) && m_pp.expAA != set_aaxp) {
|
if (parse->PlayerHasQuestSub(EVENT_AA_EXP_GAIN) && m_pp.expAA != set_aaxp) {
|
||||||
const auto aa_exp_value = set_aaxp - m_pp.expAA;
|
parse->EventPlayer(EVENT_AA_EXP_GAIN, this, std::to_string(set_aaxp - m_pp.expAA), 0);
|
||||||
const auto export_string = fmt::format("{}", aa_exp_value);
|
|
||||||
parse->EventPlayer(EVENT_AA_EXP_GAIN, this, export_string, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the client's EXP and AAEXP
|
//set the client's EXP and AAEXP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user