From 62c8d603df981ece6e1045201d9fc32ecb171118 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 16 Jun 2024 23:10:49 +0200 Subject: [PATCH 1/3] improve: skip "Watch The Maker" when completeAllQuests is set --- src/controllers/api/inventoryController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 40b8ba7c..43dffe55 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -58,6 +58,7 @@ const inventoryController: RequestHandler = async (request: Request, response: R } } if (config.completeAllQuests) { + inventoryResponse.NodeIntrosCompleted.push("/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level"); for (const quest of inventoryResponse.QuestKeys) { quest.Completed = true; quest.Progress = [ -- 2.47.2 From 4fa931c093fca729c8219a2cab42d1812addc20f Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 16 Jun 2024 23:16:30 +0200 Subject: [PATCH 2/3] improve: set ArchwingEnabled in inventory when completeAllQuests is set This allows us to purchase Archwings in the market, although that's kinda broken right now. --- src/controllers/api/inventoryController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 43dffe55..d5c62ef3 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -59,6 +59,7 @@ const inventoryController: RequestHandler = async (request: Request, response: R } if (config.completeAllQuests) { inventoryResponse.NodeIntrosCompleted.push("/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level"); + inventoryResponse.ArchwingEnabled = true; for (const quest of inventoryResponse.QuestKeys) { quest.Completed = true; quest.Progress = [ -- 2.47.2 From a73dcaa885f12e154b55e9e2dea259d03368dc45 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 16 Jun 2024 23:43:35 +0200 Subject: [PATCH 3/3] add comment --- src/controllers/api/inventoryController.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index d5c62ef3..6d12b5f7 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -58,8 +58,6 @@ const inventoryController: RequestHandler = async (request: Request, response: R } } if (config.completeAllQuests) { - inventoryResponse.NodeIntrosCompleted.push("/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level"); - inventoryResponse.ArchwingEnabled = true; for (const quest of inventoryResponse.QuestKeys) { quest.Completed = true; quest.Progress = [ @@ -71,6 +69,11 @@ const inventoryController: RequestHandler = async (request: Request, response: R } ]; } + + inventoryResponse.ArchwingEnabled = true; + + // Skip "Watch The Maker" + inventoryResponse.NodeIntrosCompleted.push("/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level"); } if (config.unlockAllShipDecorations) inventoryResponse.ShipDecorations = allShipDecorations; -- 2.47.2