Merge pull request #2 from ahasasjeb/main

This commit is contained in:
Kei-Luna
2026-04-29 06:34:49 +09:00
7 changed files with 236 additions and 7 deletions

View File

@@ -20,6 +20,8 @@ public class InventoryData : BaseDatabaseDataHelper
[SugarColumn(IsJson = true)]
public Dictionary<uint, GameSupportCardInfo> SupportCards { get; set; } = []; // Key: UniqueId
public Dictionary<uint, uint> SkinTypesBySkinId { get; set; } = []; // Key: nSkinId, Value: client nType
}
public class BaseGameItemInfo
@@ -88,7 +90,7 @@ public class GameSkinInfo : BaseGameItemInfo
Count = ItemCount,
Flag = (uint)Flag,
};
proto.Slots[11] = SkinType;
proto.Slots[11] = Math.Min(SkinType, 1);
return proto;
}
}
@@ -114,4 +116,4 @@ public class GameSupportCardInfo : BaseGameItemInfo
proto.Slots[1] = AffixId;
return proto;
}
}
}