Core/PacketIO: Use original names in SMSG_INSPECT_RESULT structure

Port From (https://github.com/TrinityCore/TrinityCore/commit/ebd4559ebc216fa5982b2e3033602f298ecef688)
This commit is contained in:
Hondacrx
2025-08-21 22:19:07 -04:00
parent 47159361cd
commit 09dfce04b9
3 changed files with 18 additions and 67 deletions
@@ -63,7 +63,7 @@ namespace Game.Networking.Packets
if (AzeriteLevel.HasValue)
_worldPacket.WriteUInt32(AzeriteLevel.Value);
TalentTraits.Write(_worldPacket);
TraitsInfo.Write(_worldPacket);
}
public PlayerModelDisplayInfo DisplayInfo;
@@ -79,7 +79,7 @@ namespace Game.Networking.Packets
public ushort TodayHK;
public ushort YesterdayHK;
public byte LifetimeMaxRank;
public TraitInspectInfo TalentTraits = new();
public TraitInspectInfo TraitsInfo = new();
}
public class QueryInspectAchievements : ClientPacket
@@ -323,15 +323,15 @@ namespace Game.Networking.Packets
public class TraitInspectInfo
{
public int Level;
public int ChrSpecializationID;
public TraitConfigPacket Config = new();
public int PlayerLevel;
public int SpecID;
public TraitConfigPacket ActiveCombatTraits = new();
public void Write(WorldPacket data)
{
data.WriteInt32(Level);
data.WriteInt32(ChrSpecializationID);
Config.Write(data);
data.WriteInt32(PlayerLevel);
data.WriteInt32(SpecID);
ActiveCombatTraits.Write(data);
}
}