diff --git a/src/services/questService.ts b/src/services/questService.ts index 8a7a532e..0a4ad1aa 100644 --- a/src/services/questService.ts +++ b/src/services/questService.ts @@ -11,6 +11,7 @@ import { addFixedLevelRewards } from "./missionInventoryUpdateService.ts"; import type { IInventoryChanges } from "../types/purchaseTypes.ts"; import questCompletionItems from "../../static/fixed_responses/questCompletionRewards.json" with { type: "json" }; import type { ITypeCount } from "../types/commonTypes.ts"; +import { updateShipFeature } from "./personalRoomsService.ts"; export interface IUpdateQuestRequest { QuestKeys: IQuestKeyClient[]; @@ -295,6 +296,15 @@ const handleQuestCompletion = async ( ]); } + // Unfaitful fix for "Examine the Reliquary on the Railjack" + if (questKey == "/Lotus/Types/Keys/RailJackBuildQuest/RailjackBuildQuestKeyChain") { + await updateShipFeature( + inventory.accountOwnerId.toString(), + "/Lotus/Types/Items/ShipFeatureItems/RailjackKeyShipFeatureItem" + ); // only works with relog + await addItems(inventory, ["/Lotus/Types/Items/ShipFeatureItems/RailjackKeyShipFeatureItem"], inventoryChanges); // required item to trigger cutscene + } + const questCompletionItems = getQuestCompletionItems(questKey); logger.debug(`quest completion items`, questCompletionItems); if (questCompletionItems) {