diff --git a/AscNet.Common/Database/Player.cs b/AscNet.Common/Database/Player.cs index 8b7590d..8c69df5 100644 --- a/AscNet.Common/Database/Player.cs +++ b/AscNet.Common/Database/Player.cs @@ -33,6 +33,7 @@ namespace AscNet.Common.Database Level = 1, Sign = "", DisplayCharId = 1021001, + DisplayCharIdList = new() { 1021001 }, Birthday = null, HonorLevel = 1, ServerId = "1", diff --git a/AscNet.Common/MsgPack/Types.cs b/AscNet.Common/MsgPack/Types.cs index 82fdaa2..8a2bce3 100644 --- a/AscNet.Common/MsgPack/Types.cs +++ b/AscNet.Common/MsgPack/Types.cs @@ -231,6 +231,7 @@ namespace AscNet.Common.MsgPack public long Level { get; set; } public string Sign { get; set; } public long DisplayCharId { get; set; } + public List DisplayCharIdList { get; set; } = new(); public Birthday? Birthday { get; set; } public long HonorLevel { get; set; } public string ServerId { get; set; } diff --git a/AscNet.GameServer/Handlers/AccountModule.cs b/AscNet.GameServer/Handlers/AccountModule.cs index 0a5f0eb..52211b2 100644 --- a/AscNet.GameServer/Handlers/AccountModule.cs +++ b/AscNet.GameServer/Handlers/AccountModule.cs @@ -111,6 +111,8 @@ namespace AscNet.GameServer.Handlers FubenUrgentEventData = new(), UseBackgroundId = 14000001 // main ui theme, table still failed to dump }; + if (notifyLogin.PlayerData.DisplayCharIdList.Count < 1) + notifyLogin.PlayerData.DisplayCharIdList.Add(notifyLogin.PlayerData.DisplayCharId); notifyLogin.FashionList.AddRange(session.character.Fashions); #if DEBUG