Skip to content

Commit

Permalink
Parsing change
Browse files Browse the repository at this point in the history
  • Loading branch information
OssieFromDK committed Jun 3, 2024
1 parent 8fd45f6 commit 68460f0
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Unlocker/Classes/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;


namespace FortniteBurger.Classes
Expand Down Expand Up @@ -72,33 +73,33 @@ internal static void UpdateProfiles(int Prestige, int itemAmount)
string SkinsItems_Text = File.ReadAllText(SkinsItemsPath);
JObject SkinsItems_JSON = JsonConvert.DeserializeObject<JObject>(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;
}
}

Expand Down

0 comments on commit 68460f0

Please # to comment.