diff --git a/Unlocker/Classes/Utils.cs b/Unlocker/Classes/Utils.cs index f9c2b1c..c3c2dbf 100644 --- a/Unlocker/Classes/Utils.cs +++ b/Unlocker/Classes/Utils.cs @@ -7,6 +7,7 @@ using System.IO; using System.Linq; using System.Threading.Tasks; +using System.Windows; namespace FortniteBurger.Classes @@ -72,33 +73,33 @@ internal static void UpdateProfiles(int Prestige, int itemAmount) string SkinsItems_Text = File.ReadAllText(SkinsItemsPath); JObject SkinsItems_JSON = JsonConvert.DeserializeObject(SkinsItems_Text); - for (int i = 0; i < Profile_JSON["list"].Count(); i++) + for (int i = 0; i < Profile_JSON["List"].Count(); i++) { - Profile_JSON["list"][i]["prestigeLevel"] = Prestige; + Profile_JSON["List"][i]["PrestigeLevel"] = Prestige; - for (int q = 0; q < Profile_JSON["list"][i]["characterItems"].Count(); q++) + for (int q = 0; q < Profile_JSON["List"][i]["CharacterItems"].Count(); q++) { - if ((int)Profile_JSON["list"][i]["characterItems"][q]["quantity"] > 3) + if ((int)Profile_JSON["List"][i]["CharacterItems"][q]["Quantity"] > 3) { - Profile_JSON["list"][i]["characterItems"][q]["quantity"] = realItemAmount; + Profile_JSON["List"][i]["CharacterItems"][q]["Quantity"] = realItemAmount; } } } - Bloodweb_JSON["prestigeLevel"] = Prestige; - for (int i = 0; i < Bloodweb_JSON["characterItems"].Count(); i++) + Bloodweb_JSON["PrestigeLevel"] = Prestige; + for (int i = 0; i < Bloodweb_JSON["CharacterItems"].Count(); i++) { - if ((int)Bloodweb_JSON["characterItems"][i]["quantity"] > 3) + if ((int)Bloodweb_JSON["CharacterItems"][i]["Quantity"] > 3) { - Bloodweb_JSON["characterItems"][i]["quantity"] = realItemAmount; + Bloodweb_JSON["CharacterItems"][i]["Quantity"] = realItemAmount; } } - for (int i = 0; i < SkinsItems_JSON["data"]["inventory"].Count(); i++) + for (int i = 0; i < SkinsItems_JSON["Data"]["Inventory"].Count(); i++) { - if ((int)SkinsItems_JSON["data"]["inventory"][i]["quantity"] > 3) + if ((int)SkinsItems_JSON["Data"]["Inventory"][i]["Quantity"] > 3) { - SkinsItems_JSON["data"]["inventory"][i]["quantity"] = realItemAmount; + SkinsItems_JSON["Data"]["Inventory"][i]["Quantity"] = realItemAmount; } }