Skip to content

Commit 98ce527

Browse files
authored
Add support for Arc Lightning Infusion stats (#2276)
Unlike other Infusion-powered spells, Arc just has conditional stats rather than a separate statset. I therefore included a skill-specific config option similar to the one for Flame Wall.
1 parent 51804d4 commit 98ce527

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/Data/Skills/act_int.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ skills["ArcPlayer"] = {
7373
["quality_display_arc_is_gem"] = {
7474
-- Display only
7575
},
76+
["arc_damage_+%_final_from_infusion_consumption"] = {
77+
mod("Damage", "MORE", nil, 0, 0, { type = "Condition", var = "ArcLightningInfused" }),
78+
},
79+
["arc_chains_gained_from_infusion_consumption"] = {
80+
mod("ChainCountMax", "BASE", nil, 0, 0, { type = "Condition", var = "ArcLightningInfused" }),
81+
},
7682
},
7783
baseFlags = {
7884
spell = true,

src/Export/Skills/act_int.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ statMap = {
1515
["quality_display_arc_is_gem"] = {
1616
-- Display only
1717
},
18+
["arc_damage_+%_final_from_infusion_consumption"] = {
19+
mod("Damage", "MORE", nil, 0, 0, { type = "Condition", var = "ArcLightningInfused" }),
20+
},
21+
["arc_chains_gained_from_infusion_consumption"] = {
22+
mod("ChainCountMax", "BASE", nil, 0, 0, { type = "Condition", var = "ArcLightningInfused" }),
23+
},
1824
},
1925
#mods
2026
#skillEnd

src/Modules/ConfigOptions.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ local configSettings = {
210210
{ var = "arcaneCloakUsedRecentlyCheck", type = "check", label = "Include in ^x7070FFMana ^7spent Recently?", ifSkill = "Arcane Cloak", tooltip = "When enabled, the mana spent by Arcane Cloak used at full mana \nwill be added to the value provided in # of ^x7070FFMana ^7spent Recently.", apply = function(val, modList, enemyModList)
211211
modList:NewMod("Condition:ArcaneCloakUsedRecently", "FLAG", true, "Config")
212212
end },
213+
{ label = "Arc:", ifSkill = "Arc"},
214+
{ var = "arcLightningInfused", type = "check", label = "Lightning Infused?", ifSkill = "Arc", apply = function(val, modList, enemyModList)
215+
modList:NewMod("Condition:ArcLightningInfused", "FLAG", true, "Config", { type = "Condition", var = "CannotConsumeInfusion", neg = true })
216+
end },
213217
{ label = "Eldritch Empowerment:", ifFlag = "EldritchEmpowerment" },
214218
{ var = "eldritchEmpowermentSacrifice", type = "check", label = "Are you Sacrificing?", tooltip = "Sacrifice 5% ^x88FFFFEnergy Shield^7 when you cast a Spell to give that Spell 30% more Damage.", ifFlag = "EldritchEmpowerment", apply = function(val, modList, enemyModList)
215219
modList:NewMod("Condition:EldritchEmpowermentSacrifice", "FLAG", true, "Config")

0 commit comments

Comments
 (0)