FIx hideout crafts flaged as needFuelForAllProductionTime not progressing

This commit is contained in:
Dev 2023-11-08 16:17:14 +00:00
parent a2970be193
commit 4580c1cea8

View File

@ -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)