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

View File

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