Skip to content

Commit 5f4d83f

Browse files
author
justjuangui
committed
Add support for alias notable maps and enhance jewel socket handling
- Enhanced passivetree_ggg.lua to support aliasNotableMap for jewel sockets.
1 parent aed8de7 commit 5f4d83f

3 files changed

Lines changed: 478 additions & 463 deletions

File tree

src/Classes/PassiveTree.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
192192
node.o = node.orbit
193193
node.oidx = node.orbitIndex
194194
node.dn = node.name
195-
node.sd = node.stats
195+
node.sd = node.stats or {}
196196

197197
node.__index = node
198198
node.linkedId = { }
@@ -261,6 +261,14 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
261261
end
262262
end
263263

264+
if node.aliasNotableMap then
265+
local aliasNotableMap = node.aliasNotableMap:lower()
266+
if self.notableMap[aliasNotableMap] then
267+
ConPrintf("Warning: aliasNotableMap '"..node.aliasNotableMap.."' for node '"..node.dn.."' is already used by notable '"..self.notableMap[aliasNotableMap].dn.."'.")
268+
end
269+
self.notableMap[node.aliasNotableMap:lower()] = node
270+
end
271+
264272
-- Find the node group
265273
local group = self.groups[node.g]
266274
if group then

src/Export/Scripts/passivetree_ggg.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,10 @@ for id, node in pairs(data.nodes) do
299299
ascendancyGroups[ascendancyName].startId = node.isAscendancyStart and nodeId or ascendancyGroups[ascendancyName].startId
300300
ascendancyGroups[ascendancyName][node.group] = true
301301
else
302-
nodeData["isJewelSocket"] = node.isJewelSocket and not node.isBlighted and true or nil
303-
nodeData["containJewelSocket"] = node.isJewelSocket and node.isBlighted and true or nil
302+
nodeData["isJewelSocket"] = node.isJewelSocket
303+
304+
-- enable support for voices_jewel_slot[n] in GrantedPassiveSkills
305+
nodeData["aliasNotableMap"] = node.isJewelSocket and node.isBlighted and node.id or nil
304306

305307
if node.isBlighted then
306308
nodeData["nodeOverlay"] = {

0 commit comments

Comments
 (0)