From 872cc7b074235457b192afdc7b3edb8b804a60fc Mon Sep 17 00:00:00 2001 From: Kei-Luna Date: Wed, 22 Apr 2026 08:17:06 +0900 Subject: [PATCH] Update CharacterData.cs --- Common/Database/Character/CharacterData.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Common/Database/Character/CharacterData.cs b/Common/Database/Character/CharacterData.cs index 8694161..7aebf72 100644 --- a/Common/Database/Character/CharacterData.cs +++ b/Common/Database/Character/CharacterData.cs @@ -21,6 +21,8 @@ public class CharacterInfo public int Trust { get; set; } public uint WeaponUniqueId { get; set; } public uint SkinId { get; set; } + public uint Flag { get; set; } + public uint Expiration { get; set; } [SugarColumn(IsJson = true)] public List UnlockedSkin { get; set; } = []; [SugarColumn(IsJson = true)] public List Spines { get; set; } = []; [SugarColumn(IsJson = true)] public List Affixs { get; set; } = []; @@ -34,12 +36,19 @@ public class CharacterInfo Id = Guid, Template = TemplateId, Count = Count, + Flag = Flag, + Expiration = Expiration, Enhance = new Enhance { Level = Level, - Break = Break + Exp = ToUInt32(Exp), + Break = Break, + Evolue = ToUInt32(Evolue), + Trust = ToUInt32(Trust) } }; + proto.Enhance.Spines.AddRange(Spines.Select(x => (ulong)x)); + proto.Enhance.Affixs.AddRange(Affixs); proto.Slots[4] = WeaponUniqueId; proto.Slots[5] = SkinId; @@ -47,4 +56,9 @@ public class CharacterInfo return proto; } + private static uint ToUInt32(int value) + { + return value > 0 ? (uint)value : 0; + } + } \ No newline at end of file