From 1c28ddcc0051d710bd29b6fed2b86a0aae11d156 Mon Sep 17 00:00:00 2001 From: PRO100KatYT <67335438+PRO100KatYT@users.noreply.github.com> Date: Sat, 7 Jan 2023 19:24:22 +0100 Subject: [PATCH] Fixed the S11 Winterfest available presents count --- structure/mcp.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/structure/mcp.js b/structure/mcp.js index 53f9a6e..52821b6 100644 --- a/structure/mcp.js +++ b/structure/mcp.js @@ -465,6 +465,16 @@ express.post("/fortnite/api/game/v2/profile/*/client/UnlockRewardNode", async (r "attributeValue": profile.items[req.body.rewardGraphId].attributes.reward_nodes_claimed }) + if (memory.season == 11) { + profile.items.S11_GIFT_KEY.quantity -= 1; + + ApplyProfileChanges.push({ + "changeType": "itemQuantityChanged", + "itemId": "S11_GIFT_KEY", + "quantity": profile.items.S11_GIFT_KEY.quantity + }) + } + fs.writeFileSync(`./profiles/${req.query.profileId || "athena"}.json`, JSON.stringify(profile, null, 2)); if (CommonCoreChanged == true) { fs.writeFileSync("./profiles/common_core.json", JSON.stringify(common_core, null, 2));