From 9a0da8528ea95e037e2ad37b8fdf05839111bc96 Mon Sep 17 00:00:00 2001 From: pharch Date: Wed, 17 Sep 2025 12:18:45 +0200 Subject: [PATCH] fix unused `fortifyAlchemy` param fix unused `fortifyAlchemy` param when calling `calcMagnitudeDurationCost()` --- scripts/alchemy/alchemy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/alchemy/alchemy.js b/scripts/alchemy/alchemy.js index d2a8cfc..eb6ca89 100644 --- a/scripts/alchemy/alchemy.js +++ b/scripts/alchemy/alchemy.js @@ -122,7 +122,7 @@ function calcPowerFactor(effect, alchemySkill = 15, alchemistLevel = 0, hasPhysi * @param {number} fortifyAlchemy */ function calcMagnitudeDurationCost(effect, alchemySkill = 15, alchemistLevel = 0, hasPhysicianPerk = false, hasBenefactorPerk = false, hasPoisonerPerk = false, isMakingPoison = false, fortifyAlchemy = 0) { - const powerFactor = calcPowerFactor(effect, alchemySkill, alchemistLevel, hasPhysicianPerk, hasBenefactorPerk, hasPoisonerPerk, isMakingPoison); + const powerFactor = calcPowerFactor(effect, alchemySkill, alchemistLevel, hasPhysicianPerk, hasBenefactorPerk, hasPoisonerPerk, isMakingPoison, fortifyAlchemy); let magnitude = effect.calculatedMagnitude; // HACK: Don't have NoMagnitude flag. if (magnitude <= 0 && !effect.variableMagnitude) {