Skip to content

Commit df0da29

Browse files
committed
totem res update for nightmare jewels and capture group refactor
1 parent eb66506 commit df0da29

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

src/Modules/ModParser.lua

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5619,23 +5619,25 @@ local jewelOtherFuncs = {
56195619
["Increases and Reductions to Physical Damage in Radius are Transformed to apply to Cold Damage"] = getSimpleConv({ "PhysicalDamage" }, "ColdDamage", "INC", true),
56205620
["Increases and Reductions to Cold Damage in Radius are Transformed to apply to Physical Damage"] = getSimpleConv({ "ColdDamage" }, "PhysicalDamage", "INC", true),
56215621
["Increases and Reductions to other Damage Types in Radius are Transformed to apply to Fire Damage"] = getSimpleConv({ "PhysicalDamage","ColdDamage","LightningDamage","ChaosDamage","ElementalDamage" }, "FireDamage", "INC", true),
5622-
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Chance to Block Spells at 35% of its value"] = getSimpleConv({ "LightningResist","ElementalResist" }, "SpellBlockChance", "BASE", false, 0.35),
5623-
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Chance to Block Spell Damage at 35% of its value"] = getSimpleConv({ "LightningResist","ElementalResist" }, "SpellBlockChance", "BASE", false, 0.35),
5624-
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Chance to Block Spell Damage at 50% of its value"] = getSimpleConv({ "LightningResist","ElementalResist" }, "SpellBlockChance", "BASE", false, 0.5),
5622+
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Chance to Block Spells at 35% of its value"] = getSimpleConv({ "LightningResist","ElementalResist", "TotemLightningResist" }, "SpellBlockChance", "BASE", false, 0.35),
5623+
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Chance to Block Spell Damage at (%d+)%% of its value"] = function(num)
5624+
return getSimpleConv({ "LightningResist","ElementalResist", "TotemLightningResist", "TotemElementalResist" }, "SpellBlockChance", "BASE", false, num/100)
5625+
end,
56255626
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant increased Maximum Energy Shield at 100% of its value"] = getSimpleConv({ "LightningResist","ElementalResist" }, "EnergyShield", "INC", false, 1.0, "BASE"),
5626-
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Lightning Damage converted to Chaos Damage at 100% of its value"] = getSimpleConv({ "LightningResist","ElementalResist" }, "LightningDamageConvertToChaos", "BASE", false, 1.0),
5627+
["Passives granting Lightning Resistance or all Elemental Resistances in Radius also grant Lightning Damage converted to Chaos Damage at 100% of its value"] = getSimpleConv({ "LightningResist","ElementalResist", "TotemLightningResist", "TotemElementalResist" }, "LightningDamageConvertToChaos", "BASE", false, 1.0),
56275628
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Chance to Dodge Attacks at 35% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "AttackDodgeChance", "BASE", false, 0.35),
56285629
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Chance to Dodge Attack Hits at 35% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "AttackDodgeChance", "BASE", false, 0.35),
5629-
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Chance to Suppress Spell Damage at 35% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "SpellSuppressionChance", "BASE", false, 0.35),
5630-
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Chance to Suppress Spell Damage at 50% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "SpellSuppressionChance", "BASE", false, 0.5),
5631-
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Chance to Suppress Spell Damage at 70% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "SpellSuppressionChance", "BASE", false, 0.7),
5630+
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Chance to Suppress Spell Damage at (%d+)%% of its value"] = function(num)
5631+
return getSimpleConv({ "ColdResist","ElementalResist", "TotemColdResist", "TotemElementalResist" }, "SpellSuppressionChance", "BASE", false, num/100)
5632+
end,
56325633
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant increased Maximum Mana at 100% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "Mana", "INC", false, 1.0, "BASE"),
5633-
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Cold Damage converted to Chaos Damage at 100% of its value"] = getSimpleConv({ "ColdResist","ElementalResist" }, "ColdDamageConvertToChaos", "BASE", false, 1.0),
5634-
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant Chance to Block Attack Damage at 35% of its value"] = getSimpleConv({ "FireResist","ElementalResist" }, "BlockChance", "BASE", false, 0.35),
5635-
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant Chance to Block Attack Damage at 50% of its value"] = getSimpleConv({ "FireResist","ElementalResist" }, "BlockChance", "BASE", false, 0.5),
5634+
["Passives granting Cold Resistance or all Elemental Resistances in Radius also grant Cold Damage converted to Chaos Damage at 100% of its value"] = getSimpleConv({ "ColdResist","ElementalResist", "TotemColdResist", "TotemElementalResist" }, "ColdDamageConvertToChaos", "BASE", false, 1.0),
5635+
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant Chance to Block Attack Damage at (%d+)%% of its value"] = function(num)
5636+
return getSimpleConv({ "FireResist","ElementalResist", "TotemFireResist", "TotemElementalResist" }, "BlockChance", "BASE", false, num/100)
5637+
end,
56365638
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant Chance to Block at 35% of its value"] = getSimpleConv({ "FireResist","ElementalResist" }, "BlockChance", "BASE", false, 0.35),
56375639
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant increased Maximum Life at 75% of its value"] = getSimpleConv({ "FireResist","ElementalResist" }, "Life", "INC", false, 0.75, "BASE"),
5638-
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant Fire Damage converted to Chaos Damage at 100% of its value"] = getSimpleConv({ "FireResist","ElementalResist" }, "FireDamageConvertToChaos", "BASE", false, 1.0),
5640+
["Passives granting Fire Resistance or all Elemental Resistances in Radius also grant Fire Damage converted to Chaos Damage at 100% of its value"] = getSimpleConv({ "FireResist","ElementalResist", "TotemFireResist", "TotemElementalResist" }, "FireDamageConvertToChaos", "BASE", false, 1.0),
56395641
["Melee and Melee Weapon Type modifiers in Radius are Transformed to Bow Modifiers"] = function(node, out, data)
56405642
if node then
56415643
local mask1 = bor(ModFlag.Axe, ModFlag.Claw, ModFlag.Dagger, ModFlag.Mace, ModFlag.Staff, ModFlag.Sword, ModFlag.Melee)

0 commit comments

Comments
 (0)