Skip to content

Commit

Permalink
Add support for Debuffs granted by Glorious Madness (#8275)
Browse files Browse the repository at this point in the history
* Add support for Debuffs granted by Glorious Madness

Using the Embrace Madness skill grants you 4 unique debuffs that accumulate up to 10 stacks.
We were also missing  1 explicit mod on each variant of the boots

* Spelling mistake

---------

Co-authored-by: LocalIdentity <[email protected]>
  • Loading branch information
LocalIdentity and LocalIdentity authored Aug 30, 2024
1 parent 31d6bc5 commit d6da847
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Data/Uniques/boots.lua
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,13 @@ Implicits: 3
{variant:3}+(8-12)% to Cold and Lightning Resistances
Grants Level 1 Embrace Madness Skill
30% increased Movement Speed
{variant:1}(150-300)% increased Armour and Evasion
{variant:1}+15 to maximum Fortification while affected by Glorious Madness
{variant:1}20% chance to deal Double Damage while affected by Glorious Madness
{variant:2}(20-40)% increased Effect of Non-Damaging Ailments
{variant:2}You have Igniting, Chilling and Shocking Conflux while affected by Glorious Madness
{variant:2}Immune to Elemental Ailments while affected by Glorious Madness
{variant:3}(20-40)% increased Chaos Damage
{variant:3}Enemies you Kill while affected by Glorious Madness have a 40% chance to Explode, dealing a quarter of their Life as Chaos Damage
{variant:3}All Damage inflicts Poison while affected by Glorious Madness
]],[[
Expand Down
11 changes: 10 additions & 1 deletion src/Modules/ConfigOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ end
local function banditTooltip(tooltip, mode, index, value)
local banditBenefits = {
["None"] = "Grants 1 Passive Skill Point",
["Oak"] = "+40 to Maximum Life",
["Oak"] = "+40 to Maximum ^xE05030Life",
["Kraityn"] = "8% increased Movement Speed",
["Alira"] = "+15% to all Elemental Resistances",
}
Expand Down Expand Up @@ -375,6 +375,15 @@ return {
{ var = "embraceMadnessActive", type = "check", label = "Is Embrace Madness active?", ifSkill = "Embrace Madness", apply = function(val, modList, enemyModList)
modList:NewMod("Condition:AffectedByGloriousMadness", "FLAG", true, "Config")
end },
{ var = "touchedDebuffsCount", type = "countAllowZero", label = "Glorious Madness Stacks", ifOption = "embraceMadnessActive", defaultState = 10, tooltip = "Glorious Madness Stacks grants:\n\tEroding Touch: 6% inc Damage Taken per stack\n\tParalysing Touch: 6% reduced Action Speed per stack\n\tDiluting Touch: 9% reduced Flask charges gained and 9% reduced Flask Effect per stack\n\tWasting Touch: 9% reduced ^xE05030Life ^7and ^x88FFFFEnergy Shield ^7recovery rate per stack", apply = function(val, modList, enemyModList)
val = m_min(val, 10)
modList:NewMod("DamageTaken", "INC", val * 6, val.." Eroding Touch Stacks", { type = "GlobalEffect", effectType = "Debuff" })
modList:NewMod("ActionSpeed", "INC", -val * 6, val.." Paralysing Touch Stacks", { type = "GlobalEffect", effectType = "Debuff" })
modList:NewMod("FlaskChargesGained", "INC", -val * 9, val.." Diluting Touch Stacks", { type = "GlobalEffect", effectType = "Debuff" })
modList:NewMod("FlaskEffect", "INC", -val * 9, val.." Diluting Touch Stacks", { type = "GlobalEffect", effectType = "Debuff" })
modList:NewMod("LifeRecoveryRate", "INC", -val * 9, val.." Wasting Touch Stacks", { type = "GlobalEffect", effectType = "Debuff" })
modList:NewMod("EnergyShieldRecoveryRate", "INC", -val * 9, val.." Wasting Touch Stacks", { type = "GlobalEffect", effectType = "Debuff" })
end },
{ label = "Feeding Frenzy:", ifSkill = "Feeding Frenzy" },
{ var = "feedingFrenzyFeedingFrenzyActive", type = "check", label = "Is Feeding Frenzy active?", ifSkill = "Feeding Frenzy", tooltip = "Feeding Frenzy grants:\n\t10% more Minion Damage\n\t10% increased Minion Movement Speed\n\t10% increased Minion Attack and Cast Speed", apply = function(val, modList, enemyModList)
modList:NewMod("Condition:FeedingFrenzyActive", "FLAG", true, "Config")
Expand Down

0 comments on commit d6da847

Please sign in to comment.