Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Regisle and LocalIdentity committed Aug 12, 2022
1 parent 78d1390 commit c855506
Show file tree
Hide file tree
Showing 10 changed files with 129,163 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/Classes/PassiveTree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
self.orbitAnglesByOrbit[orbit] = self:CalcOrbitAngles(skillsInOrbit)
end

if versionNum >= 3.19 then
local treeTextOLD
local treeFileOLD = io.open("TreeData/".. "3_18" .."/tree.lua", "r")
if treeFileOLD then
treeTextOLD = treeFileOLD:read("*a")
treeFileOLD:close()
end
local temp = {}
for k, v in pairs(assert(loadstring(treeTextOLD))()) do
temp[k] = v
end
self.assets = temp.assets
self.skillSprites = self.sprites
end
ConPrintf("Loading passive tree assets...")
for name, data in pairs(self.assets) do
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)
Expand All @@ -137,6 +151,9 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
local spriteSheets = { }
for type, data in pairs(self.skillSprites) do
local maxZoom = data[#data]
if versionNum >= 3.19 then
maxZoom = data[0.3835] or data[1]
end
local sheet = spriteSheets[maxZoom.filename]
if not sheet then
sheet = { }
Expand Down
7 changes: 6 additions & 1 deletion src/GameVersions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ liveTargetVersion = "3_0"
-- Skill tree versions
---Added for convenient indexing of skill tree versions.
---@type string[]
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", }
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", }
--- Always points to the latest skill tree version.
latestTreeVersion = treeVersionList[#treeVersionList]
---Tree version where multiple skill trees per build were introduced to PoBC.
Expand Down Expand Up @@ -85,4 +85,9 @@ treeVersions = {
num = 3.18,
url = "https://www.pathofexile.com/passive-skill-tree/3.18.0/",
},
["3_19"] = {
display = "3.19",
num = 3.19,
url = "https://www.pathofexile.com/passive-skill-tree/3.19.0/",
},
}
Binary file added src/TreeData/3_19/mastery-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/TreeData/3_19/mastery-active-effect-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/TreeData/3_19/mastery-active-selected-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/TreeData/3_19/mastery-connected-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/TreeData/3_19/mastery-disabled-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/TreeData/3_19/skills-3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/TreeData/3_19/skills-disabled-3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c855506

Please sign in to comment.