Don't save cultist circle flag into every production on init
This commit is contained in:
parent
5496ab9557
commit
4a1c4be0e9
@ -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,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user