Skip to content

Commit 33b2418

Browse files
committed
initial parts for kinetic fusillade. needs some fixes
1 parent 10e0ed0 commit 33b2418

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/Data/Skills/act_int.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11170,6 +11170,28 @@ skills["KineticFusillade"] = {
1117011170
"quality_display_spell_damage_to_attack_damage_is_gem",
1117111171
"quality_display_kinetic_fusillade_is_gem",
1117211172
},
11173+
parts = {
11174+
{
11175+
name = "One attack",
11176+
},
11177+
{
11178+
name = "Full fusillade",
11179+
},
11180+
},
11181+
preDamageFunc = function(activeSkill, output)
11182+
local MAX_PROJECTILES = 12 -- how to get from skill constants ?
11183+
local attackTime = activeSkill.skillData.attackTime or 1 -- how to get from `activeSkill` or `output` ?
11184+
11185+
local projectileCount = output.ProjectileCount
11186+
local duration = output.Duration
11187+
if activeSkill.skillPart == 1 then
11188+
totalAttackTime = duration + attackTime
11189+
activeSkill.skillData.hitTimeOverride = totalAttackTime / math.min(projectileCount, MAX_PROJECTILES)
11190+
elseif activeSkill.skillPart == 2 then
11191+
totalAttackTime = duration + attackTime * math.ceil(MAX_PROJECTILES/projectileCount)
11192+
activeSkill.skillData.hitTimeOverride = totalAttackTime / MAX_PROJECTILES
11193+
end
11194+
end,
1117311195
levels = {
1117411196
[1] = { 3, attackSpeedMultiplier = 100, baseMultiplier = 0.935, damageEffectiveness = 0.935, levelRequirement = 12, statInterpolation = { 1, }, cost = { Mana = 4, }, },
1117511197
[2] = { 3, attackSpeedMultiplier = 100, baseMultiplier = 0.942, damageEffectiveness = 0.942, levelRequirement = 15, statInterpolation = { 1, }, cost = { Mana = 4, }, },

0 commit comments

Comments
 (0)