Skip to content

Commit 505ff3f

Browse files
justjuanguijustjuangui
andauthored
Fix passive tree reference node and adjust stat description substring length (PathOfBuildingCommunity#1562)
Co-authored-by: justjuangui <servicios@juacarvajal.com>
1 parent dbc4a36 commit 505ff3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Export/Scripts/passivetree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ for i, group in ipairs(psg.groups) do
905905
nodes = {}
906906
}
907907

908-
for id, refNode in ipairs(passiveRow.RefNodes) do
908+
for id, refNode in ipairs(passiveRow.ConstraintNode) do
909909
printf(" - adding node " .. refNode.Name .. " to unlock constraint")
910910
node.unlockConstraint.nodes[id] = refNode.PassiveSkillNodeId
911911
end
@@ -979,7 +979,7 @@ for i, group in ipairs(psg.groups) do
979979
table.insert(node["stats"], "Grants Skill: " .. skillName)
980980

981981
-- -- include the stat description
982-
local statDescription =string.sub(string.lower(gemEffect.GrantedEffect.ActiveSkill.StatDescription), 1, -2)
982+
local statDescription =string.sub(string.lower(gemEffect.GrantedEffect.ActiveSkill.StatDescription), 1, -5)
983983
local handle = NewFileSearch("ggpk/" .. statDescription ..".csd")
984984
local almostOnce = false
985985
while handle do

0 commit comments

Comments
 (0)