Fixed the S11 Winterfest available presents count

This commit is contained in:
PRO100KatYT
2023-01-07 19:24:22 +01:00
parent c3247dbca6
commit 1c28ddcc00

View File

@@ -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));