From 9fe28edbe4b9862fd4f321d296071216edbd2ca3 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 1 Nov 2024 20:06:19 +0000 Subject: [PATCH] Updatd `findAndAddHideoutProductionIdToProfile()` to take into account bsg no longer storing the quest id in the productions requirement --- project/src/helpers/QuestHelper.ts | 3 ++- project/src/models/eft/hideout/IHideoutProduction.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 27c4b73a..58cb1864 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -1038,7 +1038,8 @@ export class QuestHelper { const matchingProductions = hideoutProductions.recipes.filter( (prod) => prod.areaType === Number.parseInt(craftUnlockReward.traderId) && - prod.requirements.some((requirement) => requirement.questId === questDetails._id) && + //prod.requirements.some((requirement) => requirement.questId === questDetails._id) && // BSG dont store the quest id in requirement any more! + prod.requirements.some((requirement) => requirement.type === "QuestComplete") && prod.requirements.some((x) => x.requiredLevel === craftUnlockReward.loyaltyLevel) && prod.endProduct === craftUnlockReward.items[0]._tpl, ); diff --git a/project/src/models/eft/hideout/IHideoutProduction.ts b/project/src/models/eft/hideout/IHideoutProduction.ts index 8e787f91..1e565d41 100644 --- a/project/src/models/eft/hideout/IHideoutProduction.ts +++ b/project/src/models/eft/hideout/IHideoutProduction.ts @@ -20,6 +20,7 @@ export interface IHideoutProduction { continuous: boolean; count: number; productionLimitCount: number; + isCodeProduction: boolean; } export interface IRequirement extends IRequirementBase {