Skip to content

Commit

Permalink
Remove crate_supply_series property from items
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Dec 30, 2024
1 parent 23a9299 commit 95d8283
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions CS2Interface/GameData/GameObjects/Items/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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)];
}
}
Expand Down

0 comments on commit 95d8283

Please sign in to comment.