Update questService.ts
Some checks failed
Build / build (pull_request) Failing after 2m36s

This commit is contained in:
AMelonInsideLemon 2025-10-21 15:00:42 +02:00
parent 87b859b8b3
commit 49875a6294

View File

@ -11,7 +11,6 @@ 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 { unlockShipFeature } from "./personalRoomsService.ts";
export interface IUpdateQuestRequest {
QuestKeys: IQuestKeyClient[];
@ -295,18 +294,6 @@ const handleQuestCompletion = async (
}
]);
}
// Unfaitful fix for "Examine the Reliquary on the Railjack"
if (questKey == "/Lotus/Types/Keys/RailJackBuildQuest/RailjackBuildQuestKeyChain") {
await unlockShipFeature(inventory, "/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) {
await addItems(inventory, questCompletionItems, inventoryChanges);
}
};
export const giveKeyChainItem = async (