From f88347765042b5391f3483c5e737eca5648f681d Mon Sep 17 00:00:00 2001 From: raxkin Date: Sun, 7 Dec 2025 17:18:06 +0100 Subject: [PATCH] Add source attribute to mods from radius jewels of type "LIST", that has a "table" instead of a numeric value in the attribute value --- src/Modules/ModParser.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Modules/ModParser.lua b/src/Modules/ModParser.lua index 2164cfa17e..4b7f779495 100644 --- a/src/Modules/ModParser.lua +++ b/src/Modules/ModParser.lua @@ -6517,25 +6517,31 @@ local jewelOtherFuncs = { end end end, - ["^(%w+) Passive Skills in Radius also grant (.*)$"] = function(type, mod) + ["^(%w+) Passive Skills in Radius also grant (.*)$"] = function(passiveType, mod) return function(node, out, data) - if node and (node.type == firstToUpper(type) or (node.type == "Normal" and not node.isAttribute and firstToUpper(type) == "Small")) then + if node and (node.type == firstToUpper(passiveType) or (node.type == "Normal" and not node.isAttribute and firstToUpper(passiveType) == "Small")) then local modList, line = parseMod(mod) if not line and modList[1] then -- something failed to parse, do not add to list modList[1].parsedLine = capitalizeWordsInString(mod) modList[1].source = data.modSource + if type(modList[1].value) == "table" and modList[1].value.mod then + modList[1].value.mod.source = data.modSource + end out:AddMod(modList[1]) end end end end, - ["conquered (%w+) Passive Skills also grant (.*)$"] = function(type, mod) + ["conquered (%w+) Passive Skills also grant (.*)$"] = function(passiveType, mod) return function(node, out, data) - if node and (node.type == firstToUpper(type) or (node.type == "Normal" and not node.isAttribute and firstToUpper(type) == "Small") or (node.type == "Normal" and node.isAttribute and firstToUpper(type) == "Attribute")) then + if node and (node.type == firstToUpper(passiveType) or (node.type == "Normal" and not node.isAttribute and firstToUpper(passiveType) == "Small") or (node.type == "Normal" and node.isAttribute and firstToUpper(passiveType) == "Attribute")) then local modList, line = parseMod(mod) if not line and modList[1] then -- something failed to parse, do not add to list modList[1].parsedLine = capitalizeWordsInString(mod) modList[1].source = data.modSource + if type(modList[1].value) == "table" and modList[1].value.mod then + modList[1].value.mod.source = data.modSource + end out:AddMod(modList[1]) end end