From d6da8477bd8f68f0d2ec4e3053ac2c3f8d4648e2 Mon Sep 17 00:00:00 2001 From: LocalIdentity <31035929+LocalIdentity@users.noreply.github.com> Date: Sat, 31 Aug 2024 01:36:06 +1000 Subject: [PATCH] Add support for Debuffs granted by Glorious Madness (#8275) * 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 --- src/Data/Uniques/boots.lua | 3 +++ src/Modules/ConfigOptions.lua | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Data/Uniques/boots.lua b/src/Data/Uniques/boots.lua index bf2bb35390..443d9798c3 100644 --- a/src/Data/Uniques/boots.lua +++ b/src/Data/Uniques/boots.lua @@ -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 ]],[[ diff --git a/src/Modules/ConfigOptions.lua b/src/Modules/ConfigOptions.lua index 902dabc18f..8fdd9d5f1a 100644 --- a/src/Modules/ConfigOptions.lua +++ b/src/Modules/ConfigOptions.lua @@ -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", } @@ -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")