From 0b1ad5a62d29f48dfe679df9aeac635d52bd782f Mon Sep 17 00:00:00 2001 From: lefneer311 <142682619+lefneer311@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:11:40 -0500 Subject: [PATCH] Updated composure (effect) accuracy calculation Converted from base accuracy 15 + jobpointbonus (up to 35 cap) to reflect retail ~50 + jobpointbonus (up to 70 cap) --- scripts/effects/composure.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/effects/composure.lua b/scripts/effects/composure.lua index b40ea0575e1..9721a9d5101 100644 --- a/scripts/effects/composure.lua +++ b/scripts/effects/composure.lua @@ -8,8 +8,10 @@ local effectObject = {} effectObject.onEffectGain = function(target, effect) local jpValue = target:getJobPointLevel(xi.jp.COMPOSURE_EFFECT) + local cLevel = target:getMainLevel() + local accPower = math.floor(((24 * cLevel) + 74) / 49) - target:addMod(xi.mod.ACC, 15 + jpValue) + target:addMod(xi.mod.ACC, accPower + jpValue) end effectObject.onEffectTick = function(target, effect) @@ -17,8 +19,10 @@ end effectObject.onEffectLose = function(target, effect) local jpValue = target:getJobPointLevel(xi.jp.COMPOSURE_EFFECT) + local cLevel = target:getMainLevel() + local accPower = math.floor(((24 * cLevel) + 74) / 49) - target:delMod(xi.mod.ACC, 15 + jpValue) + target:delMod(xi.mod.ACC, accPower + jpValue) end return effectObject