Skip to content

Commit

Permalink
Updated composure (effect) accuracy calculation
Browse files Browse the repository at this point in the history
Converted from base accuracy 15 + jobpointbonus (up to 35 cap) to reflect retail ~50 + jobpointbonus (up to 70 cap)
  • Loading branch information
lefneer311 authored Oct 7, 2024
1 parent 08e7cfb commit 0b1ad5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/effects/composure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ 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)
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

0 comments on commit 0b1ad5a

Please sign in to comment.