Core/logs: added xp info on login & logout

Port From (https://github.com/TrinityCore/TrinityCore/commit/bb24c6a11b2410f6dd4ef34f2b7fb87e4b01ba37)
This commit is contained in:
hondacrx
2021-01-19 13:52:16 -05:00
parent fc475c4338
commit 2d2392d6bb
3 changed files with 5 additions and 4 deletions
+3
View File
@@ -6363,6 +6363,9 @@ namespace Game.Entities
SendMovementSetCollisionHeight(scale * GetCollisionHeight(IsMounted()));
}
public uint GetXP() { return m_activePlayerData.XP; }
public uint GetXPForNextLevel() { return m_activePlayerData.NextLevelXP; }
public void SetXP(uint xp)
{
SetUpdateFieldValue(m_values.ModifyValue(m_activePlayerData).ModifyValue(m_activePlayerData.XP), xp);