Core/Items: Implement azerite essences
Port From (https://github.com/TrinityCore/TrinityCore/commit/ec9d624aec9e0a39b1bcee7d4077f46be358faad)
This commit is contained in:
@@ -67,6 +67,15 @@ namespace Game
|
||||
inspectResult.GuildData.Set(guildData);
|
||||
}
|
||||
|
||||
Item heartOfAzeroth = player.GetItemByEntry(PlayerConst.ItemIdHeartOfAzeroth);
|
||||
if (heartOfAzeroth != null)
|
||||
{
|
||||
AzeriteItem azeriteItem = heartOfAzeroth.ToAzeriteItem();
|
||||
if (azeriteItem != null)
|
||||
inspectResult.AzeriteLevel = azeriteItem.GetEffectiveLevel();
|
||||
}
|
||||
|
||||
inspectResult.ItemLevel = (int)player.GetAverageItemLevel();
|
||||
inspectResult.LifetimeMaxRank = player.m_activePlayerData.LifetimeMaxRank;
|
||||
inspectResult.TodayHK = player.m_activePlayerData.TodayHonorableKills;
|
||||
inspectResult.YesterdayHK = player.m_activePlayerData.YesterdayHonorableKills;
|
||||
|
||||
Reference in New Issue
Block a user