mirror of
https://github.com/ApfelTeeSaft/Reload-Backend.git
synced 2026-08-26 19:33:26 +00:00
Fixed S11 and S19 Winterfests
This commit is contained in:
@@ -114965,6 +114965,163 @@
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
},
|
||||
"S19_GIFTS": {
|
||||
"templateId": "AthenaRewardGraph:s19_winterfest",
|
||||
"attributes": {
|
||||
"reward_nodes_claimed": [],
|
||||
"unlock_epoch": "2021-12-16T13:52:10.000Z",
|
||||
"unlock_keys_used": 0,
|
||||
"player_random_seed": -2143043306,
|
||||
"item_seen": false,
|
||||
"player_state": [],
|
||||
"reward_graph_purchased_timestamp": 1639693875638,
|
||||
"reward_graph_purchased": true,
|
||||
"reward_keys": [
|
||||
{
|
||||
"static_key_template_id": "Token:athena_s19_winterfest_key",
|
||||
"static_key_max_count": 14,
|
||||
"static_key_initial_count": 1,
|
||||
"unlock_keys_used": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"quantity": 1
|
||||
},
|
||||
"S19_GIFT_KEY": {
|
||||
"templateId": "Token:athena_s19_winterfest_key",
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": false,
|
||||
"xp": 0,
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 14
|
||||
},
|
||||
"S11_GIFTS": {
|
||||
"templateId": "AthenaRewardGraph:winterfest",
|
||||
"attributes": {
|
||||
"reward_nodes_claimed": [],
|
||||
"unlock_epoch": "2021-12-16T13:52:10.000Z",
|
||||
"unlock_keys_used": 0,
|
||||
"player_random_seed": -2143043306,
|
||||
"item_seen": false,
|
||||
"player_state": [],
|
||||
"reward_graph_purchased_timestamp": 1639693875638,
|
||||
"reward_graph_purchased": true,
|
||||
"reward_keys": [
|
||||
{
|
||||
"static_key_template_id": "Token:athenawinterfest_key",
|
||||
"static_key_max_count": 14,
|
||||
"static_key_initial_count": 1,
|
||||
"unlock_keys_used": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"quantity": 1
|
||||
},
|
||||
"S11_GIFT_KEY": {
|
||||
"templateId": "Token:athenawinterfest_key",
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": false,
|
||||
"xp": 0,
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 14
|
||||
},
|
||||
"AthenaRewardEventGraphCosmetic:REG_ID_001_Winterfest": {
|
||||
"templateId": "AthenaRewardEventGraphCosmetic:REG_ID_001_Winterfest",
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": 1,
|
||||
"xp": 0,
|
||||
"variants": [
|
||||
{
|
||||
"channel": "RibbonType",
|
||||
"active": "Mat1",
|
||||
"owned": [
|
||||
"Mat1",
|
||||
"Mat2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"channel": "RibbonColor",
|
||||
"active": "Mat1",
|
||||
"owned": [
|
||||
"Mat1",
|
||||
"Mat2",
|
||||
"Mat3",
|
||||
"Mat4",
|
||||
"Mat5",
|
||||
"Mat6",
|
||||
"Mat7"
|
||||
]
|
||||
},
|
||||
{
|
||||
"channel": "WrappingColor",
|
||||
"active": "Mat1",
|
||||
"owned": [
|
||||
"Mat1",
|
||||
"Mat2",
|
||||
"Mat3",
|
||||
"Mat4",
|
||||
"Mat5",
|
||||
"Mat6"
|
||||
]
|
||||
},
|
||||
{
|
||||
"channel": "NameTag",
|
||||
"active": "Mat1",
|
||||
"owned": [
|
||||
"Mat1",
|
||||
"Mat2",
|
||||
"Mat3",
|
||||
"Mat4",
|
||||
"Mat5",
|
||||
"Mat6"
|
||||
]
|
||||
},
|
||||
{
|
||||
"channel": "WrappingStyle",
|
||||
"active": "Mat1",
|
||||
"owned": [
|
||||
"Mat1",
|
||||
"Mat2",
|
||||
"Mat3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"channel": "Random",
|
||||
"active": "Stage1",
|
||||
"owned": [
|
||||
"Stage1",
|
||||
"Stage2",
|
||||
"Stage3",
|
||||
"Stage4",
|
||||
"Stage5",
|
||||
"Stage6",
|
||||
"Stage7"
|
||||
]
|
||||
},
|
||||
{
|
||||
"channel": "Defined",
|
||||
"active": "Stage1",
|
||||
"owned": [
|
||||
"Stage1",
|
||||
"Stage2",
|
||||
"Stage3",
|
||||
"Stage4",
|
||||
"Stage8"
|
||||
]
|
||||
}
|
||||
],
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
|
||||
@@ -448,61 +448,39 @@
|
||||
"xp": 0
|
||||
},
|
||||
"templateId": "AthenaDance:EID_DanceMoves"
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
},
|
||||
"S19_GIFTS": {
|
||||
"templateId": "AthenaRewardGraph:s19_winterfest",
|
||||
"attributes": {
|
||||
"season_match_boost": 0,
|
||||
"loadouts": [
|
||||
"sandbox_loadout",
|
||||
"reload0-loadout"
|
||||
],
|
||||
"rested_xp_overflow": 0,
|
||||
"mfa_reward_claimed": true,
|
||||
"quest_manager": {
|
||||
"dailyLoginInterval": "0001-01-01T00:00:00.000Z",
|
||||
"dailyQuestRerolls": 1
|
||||
},
|
||||
"book_level": 1,
|
||||
"season_num": 16,
|
||||
"season_update": 1,
|
||||
"book_xp": 1,
|
||||
"permissions": [],
|
||||
"book_purchased": false,
|
||||
"lifetime_wins": 0,
|
||||
"party_assist_quest": "",
|
||||
"purchased_battle_pass_tier_offers": [],
|
||||
"rested_xp_exchange": 0.333,
|
||||
"reward_nodes_claimed": [],
|
||||
"unlock_epoch": "2021-12-16T13:52:10.000Z",
|
||||
"unlock_keys_used": 0,
|
||||
"player_random_seed": -2143043306,
|
||||
"item_seen": false,
|
||||
"player_state": [],
|
||||
"reward_graph_purchased_timestamp": 1639693875638,
|
||||
"reward_graph_purchased": true,
|
||||
"reward_keys": [
|
||||
{
|
||||
"static_key_template_id": "Token:athena_s19_winterfest_key",
|
||||
"static_key_max_count": 14,
|
||||
"static_key_initial_count": 1,
|
||||
"unlock_keys_used": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"quantity": 1
|
||||
},
|
||||
"S19_GIFT_KEY": {
|
||||
"templateId": "Token:athena_s19_winterfest_key",
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"xp_overflow": 0,
|
||||
"rested_xp": 0,
|
||||
"rested_xp_mult": 0,
|
||||
"accountLevel": 0,
|
||||
"competitive_identity": {},
|
||||
"inventory_limit_bonus": 0,
|
||||
"last_applied_loadout": "sandbox_loadout",
|
||||
"daily_rewards": {},
|
||||
"item_seen": false,
|
||||
"xp": 0,
|
||||
"season_friend_match_boost": 1,
|
||||
"active_loadout_index": 1,
|
||||
"favorite_musicpack": "",
|
||||
"favorite_glider": "",
|
||||
"favorite_pickaxe": "",
|
||||
"favorite_skydivecontrail": "",
|
||||
"favorite_backpack": "",
|
||||
"pinned_quest": "",
|
||||
"favorite_dance": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"favorite_itemwraps": [],
|
||||
"favorite_character": "",
|
||||
"favorite_loadingscreen": ""
|
||||
}
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 14
|
||||
},
|
||||
"S11_GIFTS": {
|
||||
"templateId": "AthenaRewardGraph:winterfest",
|
||||
@@ -627,6 +605,61 @@
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
"attributes": {
|
||||
"season_match_boost": 0,
|
||||
"loadouts": [
|
||||
"sandbox_loadout",
|
||||
"reload0-loadout"
|
||||
],
|
||||
"rested_xp_overflow": 0,
|
||||
"mfa_reward_claimed": true,
|
||||
"quest_manager": {
|
||||
"dailyLoginInterval": "0001-01-01T00:00:00.000Z",
|
||||
"dailyQuestRerolls": 1
|
||||
},
|
||||
"book_level": 1,
|
||||
"season_num": 16,
|
||||
"season_update": 1,
|
||||
"book_xp": 1,
|
||||
"permissions": [],
|
||||
"book_purchased": false,
|
||||
"lifetime_wins": 0,
|
||||
"party_assist_quest": "",
|
||||
"purchased_battle_pass_tier_offers": [],
|
||||
"rested_xp_exchange": 0.333,
|
||||
"level": 1,
|
||||
"xp_overflow": 0,
|
||||
"rested_xp": 0,
|
||||
"rested_xp_mult": 0,
|
||||
"accountLevel": 0,
|
||||
"competitive_identity": {},
|
||||
"inventory_limit_bonus": 0,
|
||||
"last_applied_loadout": "sandbox_loadout",
|
||||
"daily_rewards": {},
|
||||
"xp": 0,
|
||||
"season_friend_match_boost": 1,
|
||||
"active_loadout_index": 1,
|
||||
"favorite_musicpack": "",
|
||||
"favorite_glider": "",
|
||||
"favorite_pickaxe": "",
|
||||
"favorite_skydivecontrail": "",
|
||||
"favorite_backpack": "",
|
||||
"pinned_quest": "",
|
||||
"favorite_dance": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"favorite_itemwraps": [],
|
||||
"favorite_character": "",
|
||||
"favorite_loadingscreen": ""
|
||||
}
|
||||
},
|
||||
"commandRevision": 5
|
||||
}
|
||||
+11
-1
@@ -1245,6 +1245,16 @@ app.post("/fortnite/api/game/v2/profile/*/client/UnlockRewardNode", verifyToken,
|
||||
"attributeValue": profile.items[req.body.rewardGraphId].attributes.reward_nodes_claimed
|
||||
})
|
||||
|
||||
if (memory.season == 19) {
|
||||
profile.items.S19_GIFT_KEY.quantity -= 1;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemQuantityChanged",
|
||||
"itemId": "S19_GIFT_KEY",
|
||||
"quantity": profile.items.S19_GIFT_KEY.quantity
|
||||
})
|
||||
}
|
||||
|
||||
if (memory.season == 11) {
|
||||
profile.items.S11_GIFT_KEY.quantity -= 1;
|
||||
|
||||
@@ -1292,7 +1302,7 @@ app.post("/fortnite/api/game/v2/profile/*/client/RemoveGiftBox", verifyToken, as
|
||||
|
||||
let profile = profiles.profiles[req.query.profileId];
|
||||
|
||||
if (req.query.profileId != "common_core" && req.query.profileId != "profile0") return error.createError(
|
||||
if (req.query.profileId != "athena" && req.query.profileId != "common_core" && req.query.profileId != "profile0") return error.createError(
|
||||
"errors.com.epicgames.modules.profiles.invalid_command",
|
||||
`RemoveGiftBox is not valid on ${req.query.profileId} profile`,
|
||||
["RemoveGiftBox",req.query.profileId], 12801, undefined, 400, res
|
||||
|
||||
+3
-3
@@ -1153,7 +1153,7 @@ app.get("/fortnite/api/calendar/v1/timeline", async (req, res) => {
|
||||
};
|
||||
|
||||
var states = [{
|
||||
validFrom: "2020-01-01T00:00:00.000Z",
|
||||
validFrom: "0001-01-01T00:00:00.000Z",
|
||||
activeEvents: activeEvents.slice(),
|
||||
state: stateTemplate
|
||||
}]
|
||||
@@ -1343,11 +1343,11 @@ app.get("/fortnite/api/calendar/v1/timeline", async (req, res) => {
|
||||
"channels": {
|
||||
"client-matchmaking": {
|
||||
"states": [],
|
||||
"cacheExpire": "9999-01-01T22:28:47.830Z"
|
||||
"cacheExpire": "9999-01-01T00:00:00.000Z"
|
||||
},
|
||||
"client-events": {
|
||||
"states": states,
|
||||
"cacheExpire": "9999-01-01T22:28:47.830Z"
|
||||
"cacheExpire": "9999-01-01T00:00:00.000Z"
|
||||
}
|
||||
},
|
||||
"eventsTimeOffsetHrs": 0,
|
||||
|
||||
Reference in New Issue
Block a user