landsandboat/scripts/actions/weaponskills/true_strike.lua
WinterSolstice8 1ebc998ab1 [lua] Weaponskills: change accVaries to static values
Co-Authored-By: Skold177 <113406182+Skold177@users.noreply.github.com>
2026-01-06 17:56:18 -07:00

35 lines
1.2 KiB
Lua

-----------------------------------
-- True Strike
-- Club weapon skill
-- Skill level: 175
-- Deals params.critical damage. params.accuracy varies with TP.
-- 100% Critical Hit Rate. Has a substantial accuracy penalty at 100TP. http://www.bg-wiki.com/bg/True_Strike
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:100%
-- 100%TP 200%TP 300%TP
-- 1.00 1.00 1.00
-----------------------------------
---@type TWeaponSkill
local weaponskillObject = {}
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 1
params.ftpMod = { 1.0, 1.0, 1.0 }
params.str_wsc = 0.5
params.critVaries = { 1.0, 1.0, 1.0 }
params.accVaries = { -50, -50, -50 } -- TODO: verify exact number.
params.atkVaries = { 2.0, 2.0, 2.0 }
if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.str_wsc = 1.0
end
local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doPhysicalWeaponskill(player, target, wsID, params, tp, action, primary, taChar)
return tpHits, extraHits, criticalHit, damage
end
return weaponskillObject