Skip to content

Commit 74529a4

Browse files
jjbi123LocalIdentityLocalIdentity
authored
Add support for Inevitable Critical support gem (#603)
* Support for Inevitable Critical support gem * update * use limit total * Move config location and add crit recently support --------- Co-authored-by: LocalIdentity <31035929+LocalIdentity@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent f1f499b commit 74529a4

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

src/Data/Skills/sup_int.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,14 @@ skills["SupportInevitableCriticalsPlayer"] = {
20612061
label = "Inevitable Critical",
20622062
incrementalEffectiveness = 0.092720001935959,
20632063
statDescriptionScope = "gem_stat_descriptions",
2064+
statMap = {
2065+
["support_inevitable_criticals_critical_strike_chance_+%_per_second"] = {
2066+
mod("CritChance", "INC", nil, 0, 0, { type = "Multiplier", var = "SecondsSinceInevitableCrit", limitVar = "InevitableCritCap", limitTotal = true }),
2067+
},
2068+
["support_inevitable_criticals_critical_strike_chance_+%_cap"] = {
2069+
mod("Multiplier:InevitableCritCap", "BASE", nil),
2070+
},
2071+
},
20642072
baseFlags = {
20652073
},
20662074
constantStats = {

src/Export/Skills/sup_int.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,14 @@ statMap = {
544544
#skill SupportInevitableCriticalsPlayer
545545
#startSets
546546
#set SupportInevitableCriticalsPlayer
547+
statMap = {
548+
["support_inevitable_criticals_critical_strike_chance_+%_per_second"] = {
549+
mod("CritChance", "INC", nil, 0, 0, { type = "Multiplier", var = "SecondsSinceInevitableCrit", limitVar = "InevitableCritCap", limitTotal = true }),
550+
},
551+
["support_inevitable_criticals_critical_strike_chance_+%_cap"] = {
552+
mod("Multiplier:InevitableCritCap", "BASE", nil),
553+
},
554+
},
547555
#mods
548556
#skillEnd
549557

src/Modules/ConfigOptions.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,14 @@ local configSettings = {
381381
{ var = "iceNovaCastOnFrostbolt", type = "check", label = "Cast on Frostbolt?", ifSkill = "Ice Nova of Frostbolts", apply = function(val, modList, enemyModList)
382382
modList:NewMod("Condition:CastOnFrostbolt", "FLAG", true, "Config", { type = "SkillName", skillName = "Ice Nova of Frostbolts" })
383383
end },
384+
{ label = "Inevitable Critical Support:", ifSkill = "Inevitable Critical" },
385+
{ var = "SecondsSinceInevitableCrit", type = "count", label = "# of seconds since Inevitable crit:", ifSkill = "Inevitable Critical", tooltip = "Also implies you've crit recently if the value is 3s or below", apply = function(val, modList, enemyModList)
386+
modList:NewMod("Multiplier:SecondsSinceInevitableCrit", "BASE", val, "Config", { type = "Condition", var = "Combat" })
387+
if val < 4 then
388+
modList:NewMod("Condition:CritRecently", "FLAG", true, "Config", { type = "Condition", var = "Combat" })
389+
modList:NewMod("Condition:SkillCritRecently", "FLAG", true, "Config", { type = "Condition", var = "Combat" })
390+
end
391+
end },
384392
{ label = "Infusion:", ifSkill = "Infused Channelling" },
385393
{ var = "infusedChannellingInfusion", type = "check", label = "Is Infusion active?", ifSkill = "Infused Channelling", apply = function(val, modList, enemyModList)
386394
modList:NewMod("Condition:InfusionActive", "FLAG", true, "Config")

0 commit comments

Comments
 (0)