From 4580c1cea803a55b4f089df1784716ddd13f6608 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 8 Nov 2023 16:17:14 +0000 Subject: [PATCH] FIx hideout crafts flaged as `needFuelForAllProductionTime` not progressing --- project/src/helpers/HideoutHelper.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/src/helpers/HideoutHelper.ts b/project/src/helpers/HideoutHelper.ts index dba759df..3ceef96c 100644 --- a/project/src/helpers/HideoutHelper.ts +++ b/project/src/helpers/HideoutHelper.ts @@ -292,7 +292,9 @@ export class HideoutHelper // Increment progress by time passed const production = pmcData.Hideout.Production[prodId]; - production.Progress += production.needFuelForAllProductionTime ? 0 : timeElapsed; // Some items NEED power to craft (e.g. DSP) + production.Progress += (production.needFuelForAllProductionTime && !hideoutProperties.isGeneratorOn) + ? 0 + : timeElapsed; // Some items NEED power to craft (e.g. DSP) // Limit progress to total production time if progress is over (dont run for continious crafts)) if (!recipe.continuous)