landsandboat/scripts/actions/weaponskills/penta_thrust.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

29 lines
1 KiB
Lua

-----------------------------------
-- Penta Thrust
-- Polearm weapon skill
-- Skill Level: 150
-- Delivers a five-hit attack. params.accuracy varies with TP.
-- 0.875 Attack penalty
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None
-- Modifiers: STR:20% DEX:20%
-- 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 = 5
params.ftpMod = { 1.0, 1.0, 1.0 }
params.str_wsc = 0.2 params.dex_wsc = 0.2
params.accVaries = { 0, 30, 60 } -- TODO: verify exact number
params.atkVaries = { 0.875, 0.875, 0.875 }
local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doPhysicalWeaponskill(player, target, wsID, params, tp, action, primary, taChar)
return tpHits, extraHits, criticalHit, damage
end
return weaponskillObject