Skip to content

Commit

Permalink
Merge pull request #6054 from WinterSolstice8/attack_modifier_audit
Browse files Browse the repository at this point in the history
[lua] Audit WS attack bonus based on studio gobli info
  • Loading branch information
zach2good authored Jul 29, 2024
2 parents 0e86ebc + 04c622c commit dd875c8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
14 changes: 8 additions & 6 deletions scripts/actions/weaponskills/ascetics_fury.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@
local weaponskillObject = {}

weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 1
params.ftpMod = { 1, 1, 1 }
params.str_wsc = 0.5 params.vit_wsc = 0.5
local params = {}
params.numHits = 1
params.ftpMod = { 1, 1, 1 }
params.atkVaries = { 1.5, 1.5, 1.5 } -- https://w.atwiki.jp/studiogobli/pages/93.html
params.critVaries = { 0.1, 0.2, 0.4 }
params.str_wsc = 0.5
params.vit_wsc = 0.5

if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.multiHitfTP = true -- http://wiki.ffo.jp/html/15880.html
params.critVaries = { 0.2, 0.3, 0.5 }
params.atkVaries = { 2.5, 2.5, 2.5 }
params.critVaries = { 0.2, 0.3, 0.5 }
params.atkVaries = { 2.5, 2.5, 2.5 }
end

-- Apply aftermath
Expand Down
11 changes: 6 additions & 5 deletions scripts/actions/weaponskills/detonator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
local weaponskillObject = {}

weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 1
params.ftpMod = { 1.5, 2.0, 2.5 }
params.agi_wsc = 0.3
local params = {}
params.numHits = 1
params.ftpMod = { 1.5, 2.0, 2.5 }
params.atkVaries = { 2.0, 2.0, 2.0 } -- https://w.atwiki.jp/studiogobli/pages/93.html
params.agi_wsc = 0.3

if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.ftpMod = { 1.5, 2.5, 5.0 }
params.ftpMod = { 1.5, 2.5, 5.0 }
params.agi_wsc = 0.7
end

Expand Down
16 changes: 9 additions & 7 deletions scripts/actions/weaponskills/empyreal_arrow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
local weaponskillObject = {}

weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 1
params.ftpMod = { 2.0, 2.75, 3.0 }
params.str_wsc = 0.16 params.agi_wsc = 0.25
local params = {}
params.numHits = 1
params.ftpMod = { 2.0, 2.75, 3.0 }
params.atkVaries = { 2.0, 2.0, 2.0 } -- https://w.atwiki.jp/studiogobli/pages/93.html
params.str_wsc = 0.16
params.agi_wsc = 0.25

if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.ftpMod = { 1.5, 2.5, 5.0 }
params.str_wsc = 0.20 params.agi_wsc = 0.50
params.atkVaries = { 2.0, 2.0, 2.0 }
params.ftpMod = { 1.5, 2.5, 5.0 }
params.str_wsc = 0.20
params.agi_wsc = 0.50
end

local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doRangedWeaponskill(player, target, wsID, params, tp, action, primary)
Expand Down
10 changes: 6 additions & 4 deletions scripts/actions/weaponskills/howling_fist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
local weaponskillObject = {}

weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.numHits = 1
params.ftpMod = { 2.5, 2.75, 3.0 }
params.str_wsc = 0.2 params.vit_wsc = 0.5
local params = {}
params.numHits = 1
params.ftpMod = { 2.5, 2.75, 3.0 }
params.atkVaries = { 1.5, 1.5, 1.5 } -- https://w.atwiki.jp/studiogobli/pages/93.html
params.str_wsc = 0.2
params.vit_wsc = 0.5

if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.multiHitfTP = true -- http://wiki.ffo.jp/html/2422.html
Expand Down
14 changes: 6 additions & 8 deletions scripts/actions/weaponskills/retribution.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
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.str_wsc = 0.3 params.mnd_wsc = 0.5

if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.atkVaries = { 1.5, 1.5, 1.5 }
end
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
Expand Down

0 comments on commit dd875c8

Please sign in to comment.