39 lines
1.4 KiB
Lua
39 lines
1.4 KiB
Lua
-----------------------------------
|
|
-- Primal Rend
|
|
-- Axe weapon skill
|
|
-- Skill Level: N/A
|
|
-- Deals light elemental damage. Damage varies with TP. Aymur: Aftermath effect varies with TP.
|
|
-- Available only after completing the Unlocking a Myth (Beastmaster) quest.
|
|
-- Aligned with the Shadow Gorget, Soil Gorget & Aqua Gorget.
|
|
-- Aligned with the Shadow Belt, Soil Belt & Aqua Belt.
|
|
-- Element: Light
|
|
-- Modifiers: CHR:60% DEX:30%
|
|
-- 100%TP 200%TP 300%TP
|
|
-- 3.0625 5.8398 7.5625
|
|
-----------------------------------
|
|
---@type TWeaponSkill
|
|
local weaponskillObject = {}
|
|
|
|
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
|
|
local params = {}
|
|
params.ftpMod = { 4.0, 4.25, 4.75 }
|
|
params.chr_wsc = 0.3
|
|
params.ele = xi.element.LIGHT
|
|
params.skill = xi.skill.AXE
|
|
params.includemab = true
|
|
params.dStat = xi.mod.CHR -- TODO : Verify maximum bonus of 651
|
|
|
|
if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
|
|
params.ftpMod = { 3.0625, 5.8398, 7.5625 }
|
|
params.dex_wsc = 0.3 params.chr_wsc = 0.6
|
|
end
|
|
|
|
-- Apply aftermath
|
|
xi.aftermath.addStatusEffect(player, tp, xi.slot.MAIN, xi.aftermath.type.MYTHIC)
|
|
|
|
local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doMagicWeaponskill(player, target, wsID, params, tp, action, primary)
|
|
|
|
return tpHits, extraHits, criticalHit, damage
|
|
end
|
|
|
|
return weaponskillObject
|