Updatd findAndAddHideoutProductionIdToProfile()
to take into account bsg no longer storing the quest id in the productions requirement
This commit is contained in:
parent
4dff2bbe49
commit
9fe28edbe4
@ -1038,7 +1038,8 @@ export class QuestHelper {
|
|||||||
const matchingProductions = hideoutProductions.recipes.filter(
|
const matchingProductions = hideoutProductions.recipes.filter(
|
||||||
(prod) =>
|
(prod) =>
|
||||||
prod.areaType === Number.parseInt(craftUnlockReward.traderId) &&
|
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.requirements.some((x) => x.requiredLevel === craftUnlockReward.loyaltyLevel) &&
|
||||||
prod.endProduct === craftUnlockReward.items[0]._tpl,
|
prod.endProduct === craftUnlockReward.items[0]._tpl,
|
||||||
);
|
);
|
||||||
|
@ -20,6 +20,7 @@ export interface IHideoutProduction {
|
|||||||
continuous: boolean;
|
continuous: boolean;
|
||||||
count: number;
|
count: number;
|
||||||
productionLimitCount: number;
|
productionLimitCount: number;
|
||||||
|
isCodeProduction: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IRequirement extends IRequirementBase {
|
export interface IRequirement extends IRequirementBase {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user