temp fix for completeAllQuests

This commit is contained in:
Ordis 2025-01-24 15:11:13 +01:00
parent 8b836020bf
commit 2df7bbdb09
3 changed files with 4 additions and 1 deletions

View File

@ -107,6 +107,7 @@ export const inventoryController: RequestHandler = async (request, response) =>
} }
} }
if (config.completeAllQuests) { if (config.completeAllQuests) {
console.log("Completing all quests");
for (const quest of inventoryResponse.QuestKeys) { for (const quest of inventoryResponse.QuestKeys) {
quest.unlock = true; quest.unlock = true;
quest.Completed = true; quest.Completed = true;
@ -127,6 +128,7 @@ export const inventoryController: RequestHandler = async (request, response) =>
} }
inventoryResponse.ArchwingEnabled = true; inventoryResponse.ArchwingEnabled = true;
inventoryResponse.ActiveQuest = ""; //TODO: might need to reconsider this if this does not work long term.
// Skip "Watch The Maker" // Skip "Watch The Maker"
addString(inventoryResponse.NodeIntrosCompleted, "/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level"); addString(inventoryResponse.NodeIntrosCompleted, "/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level");

View File

@ -58,6 +58,7 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
console.log(`Mission failed: ${missionReport.RewardInfo?.node}`); console.log(`Mission failed: ${missionReport.RewardInfo?.node}`);
//todo: return expected response for failed mission //todo: return expected response for failed mission
res.json([]); res.json([]);
return;
//duvirisadjob does not provide missionStatus //duvirisadjob does not provide missionStatus
} }

View File

@ -43,7 +43,6 @@ export interface IInventoryDatabase
GuildId?: Types.ObjectId; // GuildId changed from ?IOid to ?Types.ObjectId GuildId?: Types.ObjectId; // GuildId changed from ?IOid to ?Types.ObjectId
PendingRecipes: IPendingRecipe[]; PendingRecipes: IPendingRecipe[];
QuestKeys: IQuestKeyDatabase[]; QuestKeys: IQuestKeyDatabase[];
ActiveQuest: string;
BlessingCooldown: Date; BlessingCooldown: Date;
Ships: Types.ObjectId[]; Ships: Types.ObjectId[];
WeaponSkins: IWeaponSkinDatabase[]; WeaponSkins: IWeaponSkinDatabase[];
@ -207,6 +206,7 @@ export interface IInventoryClient extends IDailyAffiliations {
ReceivedStartingGear: boolean; ReceivedStartingGear: boolean;
Ships: IShipInventory[]; Ships: IShipInventory[];
QuestKeys: IQuestKeyClient[]; QuestKeys: IQuestKeyClient[];
ActiveQuest: string;
FlavourItems: IFlavourItem[]; FlavourItems: IFlavourItem[];
Scoops: IEquipmentDatabase[]; Scoops: IEquipmentDatabase[];
LoadOutPresets: ILoadOutPresets; LoadOutPresets: ILoadOutPresets;