Skip to content

Commit

Permalink
Make cultist circle completion state closer to live (#1123)
Browse files Browse the repository at this point in the history
The client expects a `Progress` of 0, and `inProgress` of false when the
circle is complete
  • Loading branch information
chompDev authored Feb 23, 2025
2 parents d9f3b33 + 3f6b677 commit abedf25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions project/src/helpers/HideoutHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export class HideoutHelper {
const production = pmcData.Hideout.Production[prodId];

// Check if we're already complete, skip
if (production.AvailableForFinish) {
if (production.AvailableForFinish && !production.inProgress) {
return;
}

Expand All @@ -440,8 +440,9 @@ export class HideoutHelper {
// Craft is complete, flas as such
production.AvailableForFinish = true;

// Reset progress so its not over production time
production.Progress = production.ProductionTime;
// The client expects `Progress` to be 0, and `inProgress` to be false when a circle is complete
production.Progress = 0;
production.inProgress = false;
}

/**
Expand Down

0 comments on commit abedf25

Please sign in to comment.