Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,21 @@ local function addStats(jewel, node, spec)
end

local function addStatsFromJewelToNode(jewel, node, spec)
local itemsTab = spec.build.itemsTab
--
if itemsTab.activeSocketList then
for _, nodeId in pairs(itemsTab.activeSocketList) do
local _, socketedJewel = itemsTab:GetSocketAndJewelForNodeID(nodeId)
if socketedJewel and socketedJewel.title == "Against the Darkness" then
return addStats(jewel, node, spec)
-- attribute nodes do not count as Small Passives
if not node.isAttribute then
local itemsTab = spec.build.itemsTab
-- if Against the Darkness is socketed, add the stat
if itemsTab.activeSocketList then
for _, nodeId in pairs(itemsTab.activeSocketList) do
local _, socketedJewel = itemsTab:GetSocketAndJewelForNodeID(nodeId)
if socketedJewel and socketedJewel.title == "Against the Darkness" then
return addStats(jewel, node, spec)
end
end
-- activeSocketList isn't init on Load, need to run once
elseif itemsTab.initSockets then
return addStats(jewel, node, spec)
end
elseif itemsTab.initSockets then
return addStats(jewel, node, spec)
end
end
function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
Expand Down
Loading