Skip to content

Commit

Permalink
add back weight multiplier keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle committed Sep 1, 2024
1 parent 5a5da23 commit 9ffad17
Show file tree
Hide file tree
Showing 6 changed files with 788 additions and 752 deletions.
6 changes: 6 additions & 0 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,12 @@ function ItemClass:GetModSpawnWeight(mod, includeTags, excludeTags)
break
end
end
for i, key in ipairs(mod.weightMultiplierKey or {}) do
if (self.base.tags[key] or (includeTags and includeTags[key]) or HasInfluenceTag(key)) and not (excludeTags and excludeTags[key]) then
weight = weight * mod.weightMultiplierVal[i] / 100
break
end
end
end
return weight
end
Expand Down
902 changes: 451 additions & 451 deletions src/Data/ModItem.lua

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Data/ModJewel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ return {
["DelveAmuletVaalSkillDuration1"] = { type = "Suffix", affix = "of the Underground", "(15-25)% increased Vaal Skill Effect Duration", statOrderKey = "2944", statOrder = { 2944 }, level = 1, group = "VaalSkillDuration", weightKey = { "abyss_jewel", "jewel", "amulet", "default", }, weightVal = { 0, 0, 2000, 0 }, modTags = { "vaal" }, },
["DelveJewelryVaalSkillDamage1"] = { type = "Suffix", affix = "of the Underground", "(20-40)% increased Damage with Vaal Skills", statOrderKey = "2934", statOrder = { 2934 }, level = 1, group = "VaalSkillDamage", weightKey = { "abyss_jewel", "jewel", "belt", "ring", "default", }, weightVal = { 0, 0, 2000, 2000, 0 }, modTags = { "damage", "vaal" }, },
["JewelChaosNonAilmentDamageOverTimeMultiplier2"] = { type = "Suffix", affix = "of Atrophy", "+(6-8)% to Chaos Damage over Time Multiplier", statOrderKey = "1124", statOrder = { 1124 }, level = 1, group = "ChaosDamageOverTimeMultiplier", weightKey = { "not_str", "default", }, weightVal = { 300, 0 }, modTags = { "dot_multi", "chaos_damage", "damage", "chaos" }, },
["JewelColdDamageOverTimeMultiplier1"] = { type = "Suffix", affix = "of Gelidity", "+(6-8)% to Cold Damage over Time Multiplier", statOrderKey = "1121", statOrder = { 1121 }, level = 1, group = "ColdDamageOverTimeMultiplier", weightKey = { "not_str", "default", }, weightVal = { 300, 0 }, modTags = { "dot_multi", "elemental_damage", "damage", "elemental", "cold" }, },
["JewelFireDamageOverTimeMultiplier1"] = { type = "Suffix", affix = "of Zealousness", "+(6-8)% to Fire Damage over Time Multiplier", statOrderKey = "1116", statOrder = { 1116 }, level = 1, group = "FireDamageOverTimeMultiplier", weightKey = { "default", }, weightVal = { 300 }, modTags = { "dot_multi", "elemental_damage", "damage", "elemental", "fire" }, },
["JewelColdDamageOverTimeMultiplier1"] = { type = "Suffix", affix = "of Gelidity", "+(6-8)% to Cold Damage over Time Multiplier", statOrderKey = "1121", statOrder = { 1121 }, level = 1, group = "ColdDamageOverTimeMultiplier", weightKey = { "not_str", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { "has_caster_mod", "has_attack_mod", "default", }, weightMultiplierVal = { 100, 50, 100 }, tags = { "has_caster_mod", }, modTags = { "dot_multi", "elemental_damage", "damage", "elemental", "cold" }, },
["JewelFireDamageOverTimeMultiplier1"] = { type = "Suffix", affix = "of Zealousness", "+(6-8)% to Fire Damage over Time Multiplier", statOrderKey = "1116", statOrder = { 1116 }, level = 1, group = "FireDamageOverTimeMultiplier", weightKey = { "default", }, weightVal = { 300 }, weightMultiplierKey = { "has_caster_mod", "has_attack_mod", "default", }, weightMultiplierVal = { 100, 50, 100 }, modTags = { "dot_multi", "elemental_damage", "damage", "elemental", "fire" }, },
["JewelPhysicalDamageOverTimeMultiplier1"] = { type = "Suffix", affix = "of Exsanguinating", "+(6-8)% to Physical Damage over Time Multiplier", statOrderKey = "1112", statOrder = { 1112 }, level = 1, group = "PhysicalDamageOverTimeMultiplier", weightKey = { "default", }, weightVal = { 300 }, modTags = { "dot_multi", "physical_damage", "damage", "physical" }, },
["JewelGlobalDamageOverTimeMultiplier1"] = { type = "Suffix", affix = "of Acrimony", "+(4-6)% to Damage over Time Multiplier", statOrderKey = "1108", statOrder = { 1108 }, level = 1, group = "GlobalDamageOverTimeMultiplier", weightKey = { "default", }, weightVal = { 300 }, modTags = { "dot_multi", "damage" }, },
}
Loading

0 comments on commit 9ffad17

Please sign in to comment.