Use tab character setting

This commit is contained in:
Valorith 2023-02-11 00:52:02 -05:00 committed by Akkadius
parent 1f51a2fceb
commit fea571db40
3 changed files with 27 additions and 27 deletions

View File

@ -2086,15 +2086,15 @@ void PerlembParser::ExportEventVariables(
break; break;
} }
case EVENT_AA_EXP_GAIN: { case EVENT_AA_EXP_GAIN: {
ExportVar(package_name.c_str(), "aa_exp_gained", data); ExportVar(package_name.c_str(), "aa_exp_gained", data);
break; break;
} }
case EVENT_EXP_GAIN: { case EVENT_EXP_GAIN: {
ExportVar(package_name.c_str(), "exp_gained", data); ExportVar(package_name.c_str(), "exp_gained", data);
break; break;
} }
case EVENT_INSPECT: { case EVENT_INSPECT: {
ExportVar(package_name.c_str(), "target_id", extradata); ExportVar(package_name.c_str(), "target_id", extradata);

View File

@ -805,15 +805,15 @@ 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; const auto exp_value = set_exp - m_pp.exp;
const auto export_string = fmt::format("{}", exp_value); const auto export_string = fmt::format("{}", exp_value);
parse->EventPlayer(EVENT_EXP_GAIN, this, export_string, 0); 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; const auto aa_exp_value = set_aaxp - m_pp.expAA;
const auto export_string = fmt::format("{}", aa_exp_value); 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, export_string, 0);
} }
//set the client's EXP and AAEXP //set the client's EXP and AAEXP
@ -823,7 +823,7 @@ void Client::SetEXP(uint64 set_exp, uint64 set_aaxp, bool isrezzexp) {
if (GetLevel() < 51) { if (GetLevel() < 51) {
m_epp.perAA = 0; // turn off aa exp if they drop below 51 m_epp.perAA = 0; // turn off aa exp if they drop below 51
} else { } else {
SendAlternateAdvancementStats(); //otherwise, send them an AA update SendAlternateAdvancementStats(); //otherwise, send them an AA update
} }
//send the expdata in any case so the xp bar isnt stuck after leveling //send the expdata in any case so the xp bar isnt stuck after leveling

View File

@ -609,21 +609,21 @@ void handle_player_aa_gain(
); );
void handle_player_aa_exp_gain( void handle_player_aa_exp_gain(
QuestInterface *parse, QuestInterface *parse,
lua_State* L, lua_State* L,
Client* client, Client* client,
std::string data, std::string data,
uint32 extra_data, uint32 extra_data,
std::vector<std::any> *extra_pointers std::vector<std::any> *extra_pointers
); );
void handle_player_exp_gain( void handle_player_exp_gain(
QuestInterface *parse, QuestInterface *parse,
lua_State* L, lua_State* L,
Client* client, Client* client,
std::string data, std::string data,
uint32 extra_data, uint32 extra_data,
std::vector<std::any> *extra_pointers std::vector<std::any> *extra_pointers
); );
void handle_player_payload( void handle_player_payload(