diff --git a/AscNet.Common/Database/Player.cs b/AscNet.Common/Database/Player.cs index 8b7590dd..8c69df52 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 82fdaa24..8a2bce3f 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 0a5f0eba..52211b25 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