mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Added Quest Replacement for BR
This commit is contained in:
12
index.js
12
index.js
@@ -1652,10 +1652,10 @@ express.post("/fortnite/api/game/v2/profile/*/client/SetPinnedQuests", async (re
|
||||
res.end();
|
||||
});
|
||||
|
||||
// Replace STW Quests
|
||||
// Replace Daily Quests
|
||||
express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", async (req, res) => {
|
||||
const profile = require(`./profiles/${req.query.profileId || "campaign"}.json`);
|
||||
const QuestIDS = require("./responses/stwquests.json");
|
||||
var QuestIDS = require("./responses/quests.json");
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
@@ -1664,6 +1664,14 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
if (req.query.profileId == "profile0" || req.query.profileId == "campaign") {
|
||||
QuestIDS = QuestIDS.SaveTheWorld
|
||||
}
|
||||
|
||||
if (req.query.profileId == "athena") {
|
||||
QuestIDS = QuestIDS.BattleRoyale
|
||||
}
|
||||
|
||||
const NewQuestID = makeid();
|
||||
const randomNumber = Math.floor(Math.random() * QuestIDS.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user