Don't save cultist circle flag into every production on init

This commit is contained in:
Dev 2024-10-15 12:48:25 +01:00
parent 5496ab9557
commit 4a1c4be0e9
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,6 @@ export class HideoutHelper {
recipeId: string,
productionTime: number,
needFuelForAllProductionTime: boolean,
isCultistCircle = false,
): IProduction {
return {
Progress: 0,
@ -139,7 +138,6 @@ export class HideoutHelper {
NeedFuelForAllProductionTime: needFuelForAllProductionTime, // Used when sending to client
needFuelForAllProductionTime: needFuelForAllProductionTime, // used when stored in production.json
SkipTime: 0,
sptIsCultistCircle: isCultistCircle,
};
}

View File

@ -182,9 +182,11 @@ export class CircleOfCultistService {
recipeId,
this.getCircleCraftTimeSeconds(rewardAmountRoubles, directRewardSettings),
false,
true,
);
// Flag as cultist circle for code to pick up later
cultistProduction.sptIsCultistCircle = true;
// Add items player sacrificed
cultistProduction.GivenItemsInStart = sacrificedItems;