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

31 lines
1.1 KiB
Lua

-----------------------------------
-- Sidewinder
-- Archery weapon skill
-- Skill level: 175
-- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP.
-- Aligned with the Aqua Gorget, Light Gorget & Breeze Gorget.
-- Aligned with the Aqua Belt, Light Belt & Breeze Belt.
-- Element: None
-- Modifiers: STR:20% AGI:50%
-- 100%TP 200%TP 300%TP
-- 5.00 5.00 5.00
-----------------------------------
---@type TWeaponSkill
local weaponskillObject = {}
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 1
params.ftpMod = { 5.0, 5.0, 5.0 }
params.str_wsc = 0.16 params.agi_wsc = 0.25
params.accVaries = { -50, 0, 0 } -- TODO: verify 3k
if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.str_wsc = 0.2 params.agi_wsc = 0.5
end
local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doRangedWeaponskill(player, target, wsID, params, tp, action, primary)
return tpHits, extraHits, criticalHit, damage
end
return weaponskillObject