Expanded implementation of circleOfCultistProductionStart

This commit is contained in:
Dev 2024-08-21 19:56:29 +01:00
parent f15992b532
commit 3d8d09cc18

View File

@ -1257,10 +1257,19 @@ export class HideoutController {
request: IHideoutCircleOfCultistProductionStartRequestData,
): IItemEventRouterResponse | PromiseLike<IItemEventRouterResponse> {
// TODO
// Find items that have been sacrificed in player inventory
// Delete items from inventory
// Do we start a craft?
throw new Error("Method not implemented.");
const output = this.eventOutputHolder.getOutput(sessionId);
// Get root items inside cultist grid and remove them from inventory
const inventoryRootItemsInCultistGrid = pmcData.Inventory.items.filter(
(item) => item.slotId === "CircleOfCultistsGrid1",
);
for (const rootItem of inventoryRootItemsInCultistGrid) {
this.inventoryHelper.removeItem(pmcData, rootItem._id, sessionId, output);
}
return output;
}
/**