Skip to content

Commit 8be81d1

Browse files
author
justjuangui
committed
Add 0.5 passive tree from GGG Data
1 parent 9c2bf03 commit 8be81d1

124 files changed

Lines changed: 18008 additions & 14050 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Export/Scripts/passivetree.lua

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ local use4kIfPossible = false
121121
local idPassiveTree = 'Default'
122122
-- Find a way to get version
123123
local basePath = GetWorkDir() .. "/../TreeData/"
124-
local version = "0_4"
124+
local version = "0_5"
125125
local path = basePath .. version .. "/"
126126
local fileTree = path .. "tree.lua"
127127

@@ -726,6 +726,12 @@ for i, group in ipairs(psg.groups) do
726726
addToSheet(getSheet("skills-disabled"), passiveRow.Icon, "normalInactive", commonMetadata(nil))
727727
end
728728

729+
-- Sinister jewel support
730+
if passiveRow.JewelSocket and passiveRow.AnointOnly then
731+
node["aliasPassiveSocket"] = passiveRow.Id
732+
node["noRadius"] = true
733+
end
734+
729735
-- Ascendancy
730736
if passiveRow.Ascendancy ~= nil then
731737
groupIsAscendancy = true
@@ -800,9 +806,9 @@ for i, group in ipairs(psg.groups) do
800806
end
801807

802808
-- Enable Ascendancy Unlock
803-
if passiveRow.AscendancyUnlock ~= nil then
809+
if passiveRow.ConstraintNode ~= nil and #passiveRow.ConstraintNode > 0 then
804810
node.unlockConstraint = {
805-
ascendancy = passiveRow.AscendancyUnlock.Name,
811+
ascendancy = passiveRow.AscendancyUnlock and passiveRow.AscendancyUnlock.Name or nil,
806812
nodes = {}
807813
}
808814

@@ -822,6 +828,13 @@ for i, group in ipairs(psg.groups) do
822828
local totalStats = 0
823829
local namesStats = ""
824830
for k, stat in ipairs(passiveRow.Stats) do
831+
if k > 5 then
832+
printf("HERE ===========================================================================================>>>")
833+
printf(" - more than 5 stats, skipping the rest for passive " .. passiveRow.Name .. " " .. passive.id)
834+
print(namesStats .. stat.Id .. " | ")
835+
printf("HERE ===========================================================================================>>>")
836+
break
837+
end
825838
parseStats[stat.Id] = { min = passiveRow["Stat" .. k], max = passiveRow["Stat" .. k] }
826839
totalStats = totalStats + 1
827840
namesStats = namesStats .. stat.Id .. " | "
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes

0 commit comments

Comments
 (0)