Expanded implementation of circleOfCultistProductionStart
This commit is contained in:
parent
f15992b532
commit
3d8d09cc18
@ -1257,10 +1257,19 @@ export class HideoutController {
|
|||||||
request: IHideoutCircleOfCultistProductionStartRequestData,
|
request: IHideoutCircleOfCultistProductionStartRequestData,
|
||||||
): IItemEventRouterResponse | PromiseLike<IItemEventRouterResponse> {
|
): IItemEventRouterResponse | PromiseLike<IItemEventRouterResponse> {
|
||||||
// TODO
|
// TODO
|
||||||
// Find items that have been sacrificed in player inventory
|
// Do we start a craft?
|
||||||
// Delete items from inventory
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user