Skip to content

Commit c855506

Browse files
RegisleLocalIdentity
andauthored
Add 3.19 Tree (#4744)
* add Initial support for adding non-Tree nodes to Tree (Nine lives) * update positions and add other dummy nodes * separate stats and reminder text and add new nodes * rest of nodes * Fix comma * fix spelling of sapped * update spec.lua for passiveSkills * remove unrelated spec * update file to hardcode group and node IDs, and correct ascendency * update to new tree * add initial 3_19 tree * spelling fix Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 78d1390 commit c855506

File tree

10 files changed

+129163
-1
lines changed

10 files changed

+129163
-1
lines changed

src/Classes/PassiveTree.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
127127
self.orbitAnglesByOrbit[orbit] = self:CalcOrbitAngles(skillsInOrbit)
128128
end
129129

130+
if versionNum >= 3.19 then
131+
local treeTextOLD
132+
local treeFileOLD = io.open("TreeData/".. "3_18" .."/tree.lua", "r")
133+
if treeFileOLD then
134+
treeTextOLD = treeFileOLD:read("*a")
135+
treeFileOLD:close()
136+
end
137+
local temp = {}
138+
for k, v in pairs(assert(loadstring(treeTextOLD))()) do
139+
temp[k] = v
140+
end
141+
self.assets = temp.assets
142+
self.skillSprites = self.sprites
143+
end
130144
ConPrintf("Loading passive tree assets...")
131145
for name, data in pairs(self.assets) do
132146
self:LoadImage(name..".png", cdnRoot..(data[0.3835] or data[1]), data, not name:match("[OL][ri][bn][ie][tC]") and "ASYNC" or nil)--, not name:match("[OL][ri][bn][ie][tC]") and "MIPMAP" or nil)
@@ -137,6 +151,9 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
137151
local spriteSheets = { }
138152
for type, data in pairs(self.skillSprites) do
139153
local maxZoom = data[#data]
154+
if versionNum >= 3.19 then
155+
maxZoom = data[0.3835] or data[1]
156+
end
140157
local sheet = spriteSheets[maxZoom.filename]
141158
if not sheet then
142159
sheet = { }

src/GameVersions.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ liveTargetVersion = "3_0"
77
-- Skill tree versions
88
---Added for convenient indexing of skill tree versions.
99
---@type string[]
10-
treeVersionList = { "2_6", "3_6", "3_7", "3_8", "3_9", "3_10", "3_11", "3_12", "3_13", "3_14", "3_15", "3_16", "3_17", "3_18", }
10+
treeVersionList = { "2_6", "3_6", "3_7", "3_8", "3_9", "3_10", "3_11", "3_12", "3_13", "3_14", "3_15", "3_16", "3_17", "3_18", "3_19", }
1111
--- Always points to the latest skill tree version.
1212
latestTreeVersion = treeVersionList[#treeVersionList]
1313
---Tree version where multiple skill trees per build were introduced to PoBC.
@@ -85,4 +85,9 @@ treeVersions = {
8585
num = 3.18,
8686
url = "https://www.pathofexile.com/passive-skill-tree/3.18.0/",
8787
},
88+
["3_19"] = {
89+
display = "3.19",
90+
num = 3.19,
91+
url = "https://www.pathofexile.com/passive-skill-tree/3.19.0/",
92+
},
8893
}

src/TreeData/3_19/mastery-3.png

450 KB
Loading
1.71 MB
Loading
512 KB
Loading
139 KB
Loading
142 KB
Loading

src/TreeData/3_19/skills-3.jpg

572 KB
Loading
413 KB
Loading

0 commit comments

Comments
 (0)