Skip to content

Commit

Permalink
Merge branch 'patch-6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
dten committed Dec 14, 2021
2 parents 43f38d7 + 854cf5b commit 423f3a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/js/ffxivcraftmodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ function ApplySpecialActionEffects(s, action, condition) {

}

function UpdateEffectCounters(s, action, condition, successProbability) {
function UpdateEffectCounters(s, action, condition, successProbability, qualityGain) {
// STEP_03
// Countdown / Countup Management
//===============================
Expand All @@ -487,7 +487,7 @@ function UpdateEffectCounters(s, action, condition, successProbability) {
}

// Increment all other inner quiet count ups
if (action.qualityIncreaseMultiplier > 0 && !isActionEq(action, AllActions.byregotsBlessing)) {
if (qualityGain > 0 && !isActionEq(action, AllActions.byregotsBlessing)) {
s.effects.countUps['innerQuiet'] = (s.effects.countUps['innerQuiet'] || 0) + 1 * successProbability;
}

Expand Down Expand Up @@ -542,7 +542,7 @@ function UpdateState(s, action, progressGain, qualityGain, durabilityCost, cpCos
s.lastStep += 1;

ApplySpecialActionEffects(s, action, condition);
UpdateEffectCounters(s, action, condition, successProbability);
UpdateEffectCounters(s, action, condition, successProbability, qualityGain);

// Sanity checks for state variables
if ((s.durabilityState >= -5) && (s.progressState >= s.synth.recipe.difficulty)) {
Expand Down

0 comments on commit 423f3a2

Please sign in to comment.