landsandboat/scripts/actions/weaponskills/circle_blade.lua
2025-11-26 13:19:13 -07:00

31 lines
1,008 B
Lua

-----------------------------------
-- Circle Blade
-- Sword weapon skill
-- Skill Level: 150
-- Delivers an area of effect attack. Attack radius varies with TP.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua 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 = 1
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
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