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

36 lines
1.4 KiB
Lua

-----------------------------------
-- Ruinator
-- Axe weapon skill
-- Skill level: 357
-- Description: Delivers a four-hit attack. params.accuracy varies with TP
-- In order to obtain Ruinator, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hits
-- Aligned with the Aqua Gorget, Snow Gorget & Breeze Gorget
-- Aligned with the Aqua Belt, Snow Belt & Breeze Belt.
-- Element: None
-- Modifiers: STR:73~85%, depending on merit points upgrades.
-- 100%TP 200%TP 300%TP
-- 1.08 1.08 1.08
-----------------------------------
---@type TWeaponSkill
local weaponskillObject = {}
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 4
params.ftpMod = { 1.08, 1.08, 1.08 }
params.str_wsc = player:getMerit(xi.merit.RUINATOR) * 0.17
params.accVaries = { 0, 30, 60 } -- TODO: verify exact number
params.atkVaries = { 1.1, 1.1, 1.1 }
if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.str_wsc = 0.7 + (player:getMerit(xi.merit.RUINATOR) * 0.03)
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