landsandboat/scripts/actions/weaponskills/spinning_attack.lua
2026-01-08 10:08:45 -07:00

33 lines
1.1 KiB
Lua

-----------------------------------
-- Spinning Attack
-- Hand-to-Hand weapon skill
-- Skill Level: 150
-- Delivers an area attack. Radius varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Thunder Gorget.
-- Aligned with the Flame Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR: 35%
-- 100%TP 200%TP 300%TP
-- 1.00 1.00 1.00
-----------------------------------
---@type TWeaponSkill
local weaponskillObject = {}
-- TODO: Radius 5y at 2334 TP
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 2
params.ftpMod = { 1.0, 1.0, 1.0 }
params.str_wsc = 0.35
if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.str_wsc = 1.0 -- http://wiki.ffo.jp/html/2421.html
params.multiHitfTP = true
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