From 38d2f88e0c73fce2d506283830c0425c8a05387c Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 22 Aug 2024 12:43:30 +0100 Subject: [PATCH] Fixed circle craft not registering correctly --- project/src/controllers/HideoutController.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index 6a3d4318..66445623 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -1257,18 +1257,16 @@ export class HideoutController { pmcData: IPmcData, request: IHideoutCircleOfCultistProductionStartRequestData, ): IItemEventRouterResponse | PromiseLike { - // Sparse, just has id, can get it via ItemTpl enum too + // Sparse, just has id const cultistCraftData = this.databaseService.getHideout().production.cultistRecipes[0]; - const sacrificedItems: Item[] = this.getSacrificedItems(pmcData); - const circleCraftId = ItemTpl.HIDEOUTAREACONTAINER_CIRCLEOFCULTISTS_STASH_1; - - this.hideoutHelper.registerCircleOfCultistProduction(sessionId, pmcData, circleCraftId, sacrificedItems); + // Create production in pmc profile + this.hideoutHelper.registerCircleOfCultistProduction(sessionId, pmcData, cultistCraftData._id, sacrificedItems); // What items can be rewarded by completion of craft // TODO - how do we use this? maybe this is done in a later event? - const cultistStashDbItem = this.itemHelper.getItem(circleCraftId); + const cultistStashDbItem = this.itemHelper.getItem(ItemTpl.HIDEOUTAREACONTAINER_CIRCLEOFCULTISTS_STASH_1); const rewardItemPool = cultistStashDbItem[1]._props.Grids[0]._props.filters[0].Filter; const output = this.eventOutputHolder.getOutput(sessionId);