diff --git a/AssortGenerator/Program.cs b/AssortGenerator/Program.cs index d99e086..7388804 100644 --- a/AssortGenerator/Program.cs +++ b/AssortGenerator/Program.cs @@ -54,6 +54,11 @@ namespace AssortGenerator var barterSchemeJson = dataObject.GetProperty("barter_scheme").ToString(); var barterSchemeItems = JsonSerializer.Deserialize>>>(barterSchemeJson); + foreach (var item in items.Where(item => item.upd?.BuyRestrictionMax is not null)) + { + item.upd.BuyRestrictionMax = int.Parse(item.upd.BuyRestrictionMax.ToString()); + } + // Find loyalty level node and parse into dictionary var loyaltyLevelItemsJson = dataObject.GetProperty("loyal_level_items").ToString(); var loyaltyLevelItems = JsonSerializer.Deserialize>(loyaltyLevelItemsJson);