forked from OpenWF/SpaceNinjaServer
Update questService.ts
This commit is contained in:
parent
87b859b8b3
commit
49875a6294
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user