unfaitful fix for popup

This commit is contained in:
AMelonInsideLemon 2025-10-21 04:48:43 +02:00
parent 3b35b20a90
commit a974bcb9fa

View File

@ -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) {