mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 20:48:26 +00:00
[Cleanup] Send eqstr message in AddAAPoints (#2507)
This api is only used by quests
This commit is contained in:
@@ -11844,3 +11844,23 @@ void Client::SetLockSavePosition(bool lock_save_position)
|
||||
{
|
||||
Client::m_lock_save_position = lock_save_position;
|
||||
}
|
||||
|
||||
void Client::AddAAPoints(uint32 points)
|
||||
{
|
||||
m_pp.aapoints += points;
|
||||
|
||||
if (points == 1 && m_pp.aapoints == 1)
|
||||
{
|
||||
MessageString(Chat::Yellow, GAIN_SINGLE_AA_SINGLE_AA, fmt::format_int(m_pp.aapoints).c_str());
|
||||
}
|
||||
else if (points == 1 && m_pp.aapoints > 1)
|
||||
{
|
||||
MessageString(Chat::Yellow, GAIN_SINGLE_AA_MULTI_AA, fmt::format_int(m_pp.aapoints).c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageString(Chat::Yellow, GAIN_MULTI_AA_MULTI_AA, fmt::format_int(points).c_str(), fmt::format_int(m_pp.aapoints).c_str());
|
||||
}
|
||||
|
||||
SendAlternateAdvancementStats();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user