32 lines
1.3 KiB
Lua
32 lines
1.3 KiB
Lua
-----------------------------------
|
|
-- Retribution
|
|
-- Staff weapon skill
|
|
-- Skill Level: 230
|
|
-- Delivers a single-hit attack. Damage varies with TP.
|
|
-- In order to obtain Retribution, the quest Blood and Glory must be completed.
|
|
-- Despite the appearance of throwing the staff, this is not a long-range Weapon Skill like Mistral Axe.
|
|
-- The range only extends the usual 1 yalm beyond meleeing range.
|
|
-- Will stack with Sneak Attack.
|
|
-- Aligned with the Shadow Gorget, Soil Gorget & Aqua Gorget.
|
|
-- Aligned with the Shadow Belt, Soil Belt & Aqua Belt.
|
|
-- Element: None
|
|
-- Modifiers: STR:30% MND:50%
|
|
-- 100%TP 200%TP 300%TP
|
|
-- 2.00 2.50 3.00
|
|
-----------------------------------
|
|
---@type TWeaponSkill
|
|
local weaponskillObject = {}
|
|
|
|
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
|
|
local params = {}
|
|
params.numHits = 1
|
|
params.ftpMod = { 2.0, 2.5, 3.0 }
|
|
params.atkVaries = { 1.5, 1.5, 1.5 } -- https://w.atwiki.jp/studiogobli/pages/93.html
|
|
params.str_wsc = 0.3
|
|
params.mnd_wsc = 0.5
|
|
|
|
local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doPhysicalWeaponskill(player, target, wsID, params, tp, action, primary, taChar)
|
|
return tpHits, extraHits, criticalHit, damage
|
|
end
|
|
|
|
return weaponskillObject
|