From 95d82834ee9bd7f9e47d678a224b3cf5d6dadbb3 Mon Sep 17 00:00:00 2001 From: Citrinate Date: Sun, 29 Dec 2024 23:30:22 -0500 Subject: [PATCH] Remove crate_supply_series property from items --- CS2Interface/GameData/GameObjects/Items/Item.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CS2Interface/GameData/GameObjects/Items/Item.cs b/CS2Interface/GameData/GameObjects/Items/Item.cs index 4d37c34..f1a45fc 100644 --- a/CS2Interface/GameData/GameObjects/Items/Item.cs +++ b/CS2Interface/GameData/GameObjects/Items/Item.cs @@ -95,10 +95,6 @@ public class Item : GameObject { [JsonInclude] [JsonPropertyName("crate_defindex")] public uint? CrateDefIndex { get; private set; } - - [JsonInclude] - [JsonPropertyName("crate_supply_series")] - public uint? CrateSupplySeries { get; private set; } [JsonInclude] [JsonPropertyName("crate_name")] @@ -128,7 +124,6 @@ public class Item : GameObject { public bool ShouldSerializeSetName() => SetName != null && ShouldSerializeAdditionalProperties; public bool ShouldSerializeCrateNameID() => CrateNameID != null && ShouldSerializeAdditionalProperties; public bool ShouldSerializeCrateDefIndex() => CrateDefIndex != null && ShouldSerializeAdditionalProperties; - public bool ShouldSerializeCrateSupplySeries() => CrateSupplySeries != null && ShouldSerializeAdditionalProperties; public bool ShouldSerializeCrateName() => CrateName != null && ShouldSerializeAdditionalProperties; public bool ShouldSerializeItemData() => ItemData != null && ShouldSerializeDefs; @@ -241,7 +236,6 @@ protected override bool SetAdditionalProperties() { if (crateItemDef != null && crateItemDef.Name != null) { CrateNameID = crateItemDef["name"].Value; CrateDefIndex = uint.Parse(crateItemDef.Name); - CrateSupplySeries = uint.Parse(lootListID!); CrateName = GameData.CsgoEnglish[crateItemDef["item_name"].Value?.Substring(1)]; } }