add weapon skin & command for it

This commit is contained in:
Naruse
2026-04-28 23:48:14 +08:00
parent 5f0de1a9f0
commit 8d6e0d7638
9 changed files with 138 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ public class CharacterInfo
public int Trust { get; set; }
public uint WeaponUniqueId { get; set; }
public uint SkinId { get; set; }
public uint WeaponSkinId { get; set; }
public ItemFlagEnum Flag { get; set; } = ItemFlagEnum.FLAG_READED;
public uint Expiration { get; set; }
[SugarColumn(IsJson = true)] public List<uint> UnlockedSkin { get; set; } = [];
@@ -57,6 +58,7 @@ public class CharacterInfo
proto.Slots[4] = WeaponUniqueId;
proto.Slots[5] = SkinId;
proto.Slots[6] = WeaponSkinId;
foreach (var (slot, uid) in SupportSlots)
proto.Slots[slot] = uid;