fix: being unable to visit Palladino in Iron Wake despite completeAllQuests (#564)

This commit is contained in:
Sainan 2024-10-18 16:49:33 +02:00 committed by GitHub
parent 76964585eb
commit abc3bd8624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,15 +70,22 @@ const inventoryController: RequestHandler = async (request, response) => {
}
if (config.completeAllQuests) {
for (const quest of inventoryResponse.QuestKeys) {
quest.unlock = true;
quest.Completed = true;
quest.Progress = [
{
let numStages = 1;
if (quest.ItemType in ExportKeys && "chainStages" in ExportKeys[quest.ItemType]) {
numStages = ExportKeys[quest.ItemType].chainStages!.length;
}
quest.Progress = [];
for (let i = 0; i != numStages; ++i) {
quest.Progress.push({
c: 0,
i: false,
m: false,
b: []
}
];
});
}
}
inventoryResponse.ArchwingEnabled = true;