You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Data/ModCache.lua
+10-17Lines changed: 10 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ c["+1% to Maximum Lightning Resistance"]={{[1]={flags=0,keywordFlags=0,name="Lig
130
130
c["+1% to Maximum Lightning Resistance per 4 Green Support Gems Socketed"]={{[1]={[1]={div=4,type="Multiplier",var="GreenSupportGems"},flags=0,keywordFlags=0,name="LightningResistMax",type="BASE",value=1}},nil}
131
131
c["+1% to all Maximum Elemental Resistances"]={{[1]={flags=0,keywordFlags=0,name="ElementalResistMax",type="BASE",value=1}},nil}
132
132
c["+1% to all Maximum Elemental Resistances if you have at"]={{[1]={flags=0,keywordFlags=0,name="ElementalResistMax",type="BASE",value=1}}," if you have at "}
133
-
c["+1% to all Maximum Elemental Resistances if you have at least 5 Red, Green and Blue Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="ElementalResistMax",type="BASE",value=1}}," if you have at least 5 Red, Green and Blue Support Gems Socketed "}
133
+
c["+1% to all Maximum Elemental Resistances if you have at least 5 Red, Green and Blue Support Gems Socketed"]={{[1]={[1]={threshold=5,type="MultiplierThreshold",var="RedSupportGems"},[2]={threshold=5,type="MultiplierThreshold",var="GreenSupportGems"},[3]={threshold=5,type="MultiplierThreshold",var="BlueSupportGems"},flags=0,keywordFlags=0,name="ElementalResistMax",type="BASE",value=1}},nil}
134
134
c["+1% to all maximum Resistances if you have at least 150 Devotion"]={{[1]={[1]={stat="Devotion",threshold=150,type="StatThreshold"},flags=0,keywordFlags=0,name="ElementalResistMax",type="BASE",value=1},[2]={[1]={stat="Devotion",threshold=150,type="StatThreshold"},flags=0,keywordFlags=0,name="ChaosResistMax",type="BASE",value=1}},nil}
135
135
c["+1% to maximum Block chance"]={{[1]={flags=0,keywordFlags=0,name="BlockChanceMax",type="BASE",value=1}},nil}
136
136
c["+1.1% to Unarmed Melee Attack Critical Hit Chance"]={{[1]={flags=16777477,keywordFlags=0,name="CritChance",type="BASE",value=1.1}},nil}
@@ -274,12 +274,12 @@ c["+2 to Maximum Rage"]={{[1]={flags=0,keywordFlags=0,name="MaximumRage",type="B
274
274
c["+2 to Melee Strike Range"]={{[1]={flags=0,keywordFlags=0,name="MeleeWeaponRange",type="BASE",value=2},[2]={flags=0,keywordFlags=0,name="UnarmedRange",type="BASE",value=2}},nil}
275
275
c["+2% chance to Suppress Spell Damage"]={{[1]={flags=0,keywordFlags=0,name="SpellSuppressionChance",type="BASE",value=2}},nil}
276
276
c["+2% to Maximum Cold Resistance"]={{[1]={flags=0,keywordFlags=0,name="ColdResistMax",type="BASE",value=2}},nil}
277
-
c["+2% to Maximum Cold Resistance if you have at least 5 Blue Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="ColdResistMax",type="BASE",value=2}}," if you have at least 5 Blue Support Gems Socketed "}
277
+
c["+2% to Maximum Cold Resistance if you have at least 5 Blue Support Gems Socketed"]={{[1]={[1]={threshold=5,type="MultiplierThreshold",var="BlueSupportGems"},flags=0,keywordFlags=0,name="ColdResistMax",type="BASE",value=2}},nil}
278
278
c["+2% to Maximum Fire Resistance"]={{[1]={flags=0,keywordFlags=0,name="FireResistMax",type="BASE",value=2}},nil}
279
-
c["+2% to Maximum Fire Resistance if you have at least 5 Red Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="FireResistMax",type="BASE",value=2}}," if you have at least 5 Red Support Gems Socketed "}
279
+
c["+2% to Maximum Fire Resistance if you have at least 5 Red Support Gems Socketed"]={{[1]={[1]={threshold=5,type="MultiplierThreshold",var="RedSupportGems"},flags=0,keywordFlags=0,name="FireResistMax",type="BASE",value=2}},nil}
280
280
c["+2% to Maximum Fire Resistance while Ignited"]={{[1]={[1]={type="Condition",var="Ignited"},flags=0,keywordFlags=0,name="FireResistMax",type="BASE",value=2}},nil}
281
281
c["+2% to Maximum Lightning Resistance"]={{[1]={flags=0,keywordFlags=0,name="LightningResistMax",type="BASE",value=2}},nil}
282
-
c["+2% to Maximum Lightning Resistance if you have at least 5 Green Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="LightningResistMax",type="BASE",value=2}}," if you have at least 5 Green Support Gems Socketed "}
282
+
c["+2% to Maximum Lightning Resistance if you have at least 5 Green Support Gems Socketed"]={{[1]={[1]={threshold=5,type="MultiplierThreshold",var="GreenSupportGems"},flags=0,keywordFlags=0,name="LightningResistMax",type="BASE",value=2}},nil}
283
283
c["+2% to Quality of all Skills"]={{[1]={flags=0,keywordFlags=0,name="GemProperty",type="LIST",value={key="quality",keyOfScaledMod="value",keyword="all",value=2}}},nil}
284
284
c["+2% to maximum Block chance"]={{[1]={flags=0,keywordFlags=0,name="BlockChanceMax",type="BASE",value=2}},nil}
285
285
c["+2.4% to Critical Hit Chance"]={{[1]={flags=0,keywordFlags=0,name="CritChance",type="BASE",value=2.4}},nil}
@@ -2691,15 +2691,12 @@ c["5% increased Life Regeneration rate"]={{[1]={flags=0,keywordFlags=0,name="Lif
c["5% increased Magnitude of Ailments you inflict"]={{[1]={flags=0,keywordFlags=0,name="AilmentMagnitude",type="INC",value=5}},nil}
2693
2693
c["5% increased Mana Regeneration Rate"]={{[1]={flags=0,keywordFlags=0,name="ManaRegen",type="INC",value=5}},nil}
2694
-
c["5% increased Maximum Life if you have at least 10 Red Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="Life",type="INC",value=5}}," if you have at least 10 Red Support Gems Socketed "}
2695
-
c["5% increased Maximum Life if you have at least 10 Red Support Gems Socketed 5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="Life",type="INC",value=5}}," if you have at least 10 Red Support Gems Socketed 5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed "}
2696
-
c["5% increased Maximum Life if you have at least 10 Red Support Gems Socketed 5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed 5% increased Movement Speed if you have at least 10 Green Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="Life",type="INC",value=5}}," if you have at least 10 Red Support Gems Socketed 5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed 5% increased Movement Speed if you have at least 10 Green Support Gems Socketed "}
2694
+
c["5% increased Maximum Life if you have at least 10 Red Support Gems Socketed"]={{[1]={[1]={threshold=10,type="MultiplierThreshold",var="RedSupportGems"},flags=0,keywordFlags=0,name="Life",type="INC",value=5}},nil}
2697
2695
c["5% increased Maximum Life per Socket filled"]={{[1]={[1]={type="Multiplier",var="RunesSocketedIn{SlotName}"},flags=0,keywordFlags=0,name="Life",type="INC",value=5}},nil}
2698
-
c["5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="Mana",type="INC",value=5}}," if you have at least 10 Blue Support Gems Socketed "}
2699
-
c["5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed 5% increased Movement Speed if you have at least 10 Green Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="Mana",type="INC",value=5}}," if you have at least 10 Blue Support Gems Socketed 5% increased Movement Speed if you have at least 10 Green Support Gems Socketed "}
2696
+
c["5% increased Maximum Mana if you have at least 10 Blue Support Gems Socketed"]={{[1]={[1]={threshold=10,type="MultiplierThreshold",var="BlueSupportGems"},flags=0,keywordFlags=0,name="Mana",type="INC",value=5}},nil}
2700
2697
c["5% increased Maximum Mana per Socket filled"]={{[1]={[1]={type="Multiplier",var="RunesSocketedIn{SlotName}"},flags=0,keywordFlags=0,name="Mana",type="INC",value=5}},nil}
2701
2698
c["5% increased Movement Speed"]={{[1]={flags=0,keywordFlags=0,name="MovementSpeed",type="INC",value=5}},nil}
2702
-
c["5% increased Movement Speed if you have at least 10 Green Support Gems Socketed"]={{[1]={flags=0,keywordFlags=0,name="MovementSpeed",type="INC",value=5}}," if you have at least 10 Green Support Gems Socketed "}
2699
+
c["5% increased Movement Speed if you have at least 10 Green Support Gems Socketed"]={{[1]={[1]={threshold=10,type="MultiplierThreshold",var="GreenSupportGems"},flags=0,keywordFlags=0,name="MovementSpeed",type="INC",value=5}},nil}
2703
2700
c["5% increased Movement Speed if you've Pinned an Enemy Recently"]={{[1]={[1]={type="Condition",var="PinnedEnemyRecently"},flags=0,keywordFlags=0,name="MovementSpeed",type="INC",value=5}},nil}
2704
2701
c["5% increased Movement Speed per Frenzy Charge"]={{[1]={[1]={type="Multiplier",var="FrenzyCharge"},flags=0,keywordFlags=0,name="MovementSpeed",type="INC",value=5}},nil}
@@ -4978,9 +4975,7 @@ c["Immobilise enemies at 50% buildup instead of 100%"]={nil,"Immobilise enemies
4978
4975
c["Immobilise enemies at 50% buildup instead of 100% Enemies Immobilised by you take 25% less Damage"]={nil,"Immobilise enemies at 50% buildup instead of 100% Enemies Immobilised by you take 25% less Damage "}
4979
4976
c["Immune to Bleeding if Equipped Helmet has higher Armour than Evasion Rating"]={{[1]={[1]={type="Condition",var="HelmetArmourHigherThanEvasion"},flags=0,keywordFlags=0,name="BleedImmune",type="FLAG",value=true}},nil}
4980
4977
c["Immune to Chaos Damage and Bleeding"]={{[1]={flags=0,keywordFlags=0,name="ChaosInoculation",type="FLAG",value=true},[2]={flags=0,keywordFlags=0,name="ChaosDamageTaken",type="MORE",value=-100},[3]={flags=0,keywordFlags=0,name="BleedImmune",type="FLAG",value=true}},nil}
4981
-
c["Immune to Chill if a majority of your Socketed Support Gems are Blue"]={nil,"Immune to Chill if a majority of your Socketed Support Gems are Blue "}
4982
-
c["Immune to Chill if a majority of your Socketed Support Gems are Blue Immune to Ignite if a majority of your Socketed Support Gems are Red"]={nil,"Immune to Chill if a majority of your Socketed Support Gems are Blue Immune to Ignite if a majority of your Socketed Support Gems are Red "}
4983
-
c["Immune to Chill if a majority of your Socketed Support Gems are Blue Immune to Ignite if a majority of your Socketed Support Gems are Red Immune to Shock if a majority of your Socketed Support Gems are Green"]={nil,"Immune to Chill if a majority of your Socketed Support Gems are Blue Immune to Ignite if a majority of your Socketed Support Gems are Red Immune to Shock if a majority of your Socketed Support Gems are Green "}
4978
+
c["Immune to Chill if a majority of your Socketed Support Gems are Blue"]={{[1]={[1]={type="Condition",var="MajorityBlueSocketedSupports"},flags=0,keywordFlags=0,name="ChillImmune",type="FLAG",value=true}},nil}
4984
4979
c["Immune to Corrupted Blood"]={nil,"Immune to Corrupted Blood "}
4985
4980
c["Immune to Corrupted Blood 40% reduced Duration of Bleeding on You"]={nil,"Immune to Corrupted Blood 40% reduced Duration of Bleeding on You "}
4986
4981
c["Immune to Elemental Ailments while on Consecrated Ground if you have at least 150 Devotion"]={{[1]={[1]={type="Condition",var="OnConsecratedGround"},[2]={stat="Devotion",threshold=150,type="StatThreshold"},flags=0,keywordFlags=0,name="ElementalAilmentImmune",type="FLAG",value=true}},nil}
@@ -4989,14 +4984,13 @@ c["Immune to Freeze and Chill while affected by Ice Archon"]={nil,"Immune to Fre
4989
4984
c["Immune to Hinder"]={nil,"Immune to Hinder "}
4990
4985
c["Immune to Hinder Immune to Maim"]={nil,"Immune to Hinder Immune to Maim "}
4991
4986
c["Immune to Ignite"]={{[1]={flags=0,keywordFlags=0,name="IgniteImmune",type="FLAG",value=true}},nil}
4992
-
c["Immune to Ignite if a majority of your Socketed Support Gems are Red"]={nil,"Immune to Ignite if a majority of your Socketed Support Gems are Red "}
4993
-
c["Immune to Ignite if a majority of your Socketed Support Gems are Red Immune to Shock if a majority of your Socketed Support Gems are Green"]={nil,"Immune to Ignite if a majority of your Socketed Support Gems are Red Immune to Shock if a majority of your Socketed Support Gems are Green "}
4987
+
c["Immune to Ignite if a majority of your Socketed Support Gems are Red"]={{[1]={[1]={type="Condition",var="MajorityRedSocketedSupports"},flags=0,keywordFlags=0,name="IgniteImmune",type="FLAG",value=true}},nil}
4994
4988
c["Immune to Ignite while affected by Flame Archon"]={nil,"Immune to Ignite while affected by Flame Archon "}
4995
4989
c["Immune to Maim"]={nil,"Immune to Maim "}
4996
4990
c["Immune to Poison"]={{[1]={flags=0,keywordFlags=0,name="PoisonImmune",type="FLAG",value=true}},nil}
4997
4991
c["Immune to Poison if Equipped Helmet has higher Evasion Rating than Armour"]={{[1]={[1]={type="Condition",var="HelmetEvasionHigherThanArmour"},flags=0,keywordFlags=0,name="PoisonImmune",type="FLAG",value=true}},nil}
4998
4992
c["Immune to Shock"]={{[1]={flags=0,keywordFlags=0,name="ShockImmune",type="FLAG",value=true}},nil}
4999
-
c["Immune to Shock if a majority of your Socketed Support Gems are Green"]={nil,"Immune to Shock if a majority of your Socketed Support Gems are Green "}
4993
+
c["Immune to Shock if a majority of your Socketed Support Gems are Green"]={{[1]={[1]={type="Condition",var="MajorityGreenSocketedSupports"},flags=0,keywordFlags=0,name="ShockImmune",type="FLAG",value=true}},nil}
5000
4994
c["Immune to Shock while affected by Lightning Archon"]={nil,"Immune to Shock while affected by Lightning Archon "}
5001
4995
c["Increases and Reductions to Armour also apply to Energy Shield"]={nil,"Increases and Reductions to Armour also apply to Energy Shield "}
5002
4996
c["Increases and Reductions to Armour also apply to Energy Shield Recharge Rate at 40% of their value"]={{[1]={flags=0,keywordFlags=0,name="ArmourAppliesToEnergyShieldRecharge",type="FLAG",value=true},[2]={flags=0,keywordFlags=0,name="ImprovedArmourAppliesToEnergyShieldRecharge",type="MAX",value=40}},nil}
@@ -5790,7 +5784,6 @@ c["contributes to Flammability and Ignite Magnitudes"]={nil,"contributes to Flam
5790
5784
c["every different Grenade fired in the past 8 seconds"]={nil,"every different Grenade fired in the past 8 seconds "}
5791
5785
c["for 4 seconds, every 0.25 seconds while raised"]={nil,"for 4 seconds, every 0.25 seconds while raised "}
5792
5786
c["gain 6 Cold Surges or 6 Fire Surges"]={{}," Cold Surges or 6 Fire Surges "}
5793
-
c["least 5 Red, Green and Blue Support Gems Socketed"]={nil,"least 5 Red, Green and Blue Support Gems Socketed "}
5794
5787
c["the enemy's Power for 6 seconds, up to a total of 500"]={nil,"the enemy's Power for 6 seconds, up to a total of 500 "}
5795
5788
c["the same damage to enemies within 1.8 metres"]={nil,"the same damage to enemies within 1.8 metres "}
5796
5789
c["until you take no Damage to Life for 5 seconds"]={nil,"until you take no Damage to Life for 5 seconds "}
Copy file name to clipboardExpand all lines: src/Modules/ModParser.lua
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1537,6 +1537,13 @@ local modTagList = {
1537
1537
["while affected by a normal abyss jewel"] = { tag = { type = "MultiplierThreshold", var = "NormalAbyssJewels", threshold = 1 } },
1538
1538
["while an enemy with an open weakness is in your presence"] = { tag = { type = "Condition", var = "OpenWeaknessEnemyPresence" } }, -- This one means there's an enemy that has open weakness "nearby"
1539
1539
["against enemies with an open weakness"] = { tag = { type = "Condition", var = "EnemyHasOpenWeakness" } }, -- This one means the enemy you're targeting has open weakness
1540
+
-- Gem conditions
1541
+
["if you have at least (%d+) (%a+) support gems socketed"] = function(count, _, color) return { tag = { type = "MultiplierThreshold", var = firstToUpper(color) .. "SupportGems", threshold = count } } end,
1542
+
["if you have at least (%d+) red, green and blue support gems socketed"] = function(count)
1543
+
return { tagList = {
1544
+
{ type = "MultiplierThreshold", var = "RedSupportGems", threshold = count },
1545
+
{ type = "MultiplierThreshold", var = "GreenSupportGems", threshold = count },
1546
+
{ type = "MultiplierThreshold", var = "BlueSupportGems", threshold = count } } } end,
1540
1547
-- Slot conditions
1541
1548
["when in main hand"] = { tag = { type = "SlotNumber", num = 1 } },
1542
1549
["when in off hand"] = { tag = { type = "SlotNumber", num = 2 } },
@@ -4720,6 +4727,9 @@ local specialModList = {
4720
4727
flag("CurseImmune", { type = "Condition", var = "UsingFlask" }),
4721
4728
flag("StunImmune", { type = "Condition", var = "UsingFlask" }),
4722
4729
},
4730
+
["immun[ei]t?y? to (%a+) if a majority of your socketed support gems are (%a+)"] = function(_, ailment, color)
0 commit comments