Skip to content

Commit 8039783

Browse files
github-actions[bot]Wires77LocalIdentity
authored
[pob2-port] Add support for the rare variant of The Adorned (#9417)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding-PoE2#1679 * Fix merge issues --------- Co-authored-by: Wires77 <Wires77@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 6facda7 commit 8039783

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/Modules/CalcSetup.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,12 @@ function calcs.initEnv(build, mode, override, specEnv)
712712
item.jewelData.limitDisabled = nil
713713
end
714714
if item and item.type == "Jewel" and item.name:match("The Adorned, Crimson Jewel") then
715-
env.modDB.multipliers["CorruptedMagicJewelEffect"] = item.jewelData.corruptedMagicJewelIncEffect / 100
715+
if item.jewelData.corruptedMagicJewelIncEffect then
716+
env.modDB.multipliers["CorruptedMagicJewelEffect"] = item.jewelData.corruptedMagicJewelIncEffect / 100
717+
end
718+
if item.jewelData.corruptedRareJewelIncEffect then
719+
env.modDB.multipliers["CorruptedRareJewelEffect"] = item.jewelData.corruptedRareJewelIncEffect / 100
720+
end
716721
end
717722
if item.limit and not env.configInput.ignoreJewelLimits then
718723
local limitKey = item.base.subType == "Timeless" and "Historic" or item.title
@@ -1061,8 +1066,8 @@ function calcs.initEnv(build, mode, override, specEnv)
10611066
combinedList:MergeMod(mod)
10621067
end
10631068
env.itemModDB:ScaleAddList(combinedList, scale)
1064-
elseif env.modDB.multipliers["CorruptedMagicJewelEffect"] and item.type == "Jewel" and item.rarity == "MAGIC" and item.corrupted and slot.nodeId and item.base.subType ~= "Charm" then
1065-
scale = scale + env.modDB.multipliers["CorruptedMagicJewelEffect"]
1069+
elseif env.modDB.multipliers["Corrupted" .. item.rarity:gsub("(%a)(%u*)", function(a, b) return a..string.lower(b) end) .. "JewelEffect"] and item.type == "Jewel" and item.corrupted and slot.nodeId and item.base.subType ~= "Charm" and not env.spec.nodes[slot.nodeId].containJewelSocket then
1070+
scale = scale + env.modDB.multipliers["Corrupted" .. item.rarity:gsub("(%a)(%u*)", function(a, b) return a..string.lower(b) end) .. "JewelEffect"]
10661071
local combinedList = new("ModList")
10671072
for _, mod in ipairs(srcList) do
10681073
combinedList:MergeMod(mod)

src/Modules/ModParser.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4919,8 +4919,8 @@ local specialModList = {
49194919
["added small passive skills grant nothing"] = { mod("JewelData", "LIST", { key = "clusterJewelSmallsAreNothingness", value = true }) },
49204920
["added small passive skills have (%d+)%% increased effect"] = function(num) return { mod("JewelData", "LIST", { key = "clusterJewelIncEffect", value = num }) } end,
49214921
["this jewel's socket has (%d+)%% increased effect per allocated passive skill between it and your class' starting location"] = function(num) return { mod("JewelData", "LIST", { key = "jewelIncEffectFromClassStart", value = num }) } end,
4922-
["(%d+)%% increased effect of jewel socket passive skills containing corrupted magic jewels, if not from cluster jewels"] = function(num) return { mod("JewelData", "LIST", { key = "corruptedMagicJewelIncEffect", value = num }) } end,
4923-
["(%d+)%% increased effect of jewel socket passive skills containing corrupted magic jewels"] = function(num) return { mod("JewelData", "LIST", { key = "corruptedMagicJewelIncEffect", value = num }) } end,
4922+
["(%d+)%% increased effect of jewel socket passive skills containing corrupted (m?r?ag?r?i?e?c?) jewels, if not from cluster jewels"] = function(num, _, rarity) return { mod("JewelData", "LIST", { key = "corrupted" .. firstToUpper(rarity) .. "JewelIncEffect", value = num }) } end,
4923+
["(%d+)%% increased effect of jewel socket passive skills containing corrupted (m?r?ag?r?i?e?c?) jewels"] = function(num, _, rarity) return { mod("JewelData", "LIST", { key = "corrupted" .. firstToUpper(rarity) .. "JewelIncEffect", value = num }) } end,
49244924
-- Misc
49254925
["can't use chest armour"] = { mod("CanNotUseItem", "Flag", 1, { type = "DisablesItem", slotName = "Body Armour" }) },
49264926
["can't use helmets?"] = { mod("CanNotUseItem", "Flag", 1, { type = "DisablesItem", slotName = "Helmet" }) },

0 commit comments

Comments
 (0)