From 73f5fcd6d7097a606771a1dcc10aad814ade7da3 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 12 Feb 2023 17:52:13 -0500 Subject: [PATCH] Update exp.cpp --- zone/exp.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/zone/exp.cpp b/zone/exp.cpp index 7b1a09aa5..d906b6666 100644 --- a/zone/exp.cpp +++ b/zone/exp.cpp @@ -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) { - const auto exp_value = set_exp - m_pp.exp; - const auto export_string = fmt::format("{}", exp_value); - parse->EventPlayer(EVENT_EXP_GAIN, this, export_string, 0); + parse->EventPlayer(EVENT_EXP_GAIN, this, std::to_string(set_exp - m_pp.exp), 0); } if (parse->PlayerHasQuestSub(EVENT_AA_EXP_GAIN) && m_pp.expAA != set_aaxp) { - const auto aa_exp_value = set_aaxp - m_pp.expAA; - const auto export_string = fmt::format("{}", aa_exp_value); - parse->EventPlayer(EVENT_AA_EXP_GAIN, this, export_string, 0); + parse->EventPlayer(EVENT_AA_EXP_GAIN, this, std::to_string(set_aaxp - m_pp.expAA), 0); } //set the client's EXP and AAEXP