Skip to content

Commit d515d4e

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents 772454b + 1962383 commit d515d4e

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.4.89 - 2018/05/31
2+
* 3.2 Shadow passive trees will now migrate to 3.3 without a full reset
3+
14
### 1.4.88 - 2018/05/30
25
* Sorting unique flasks by DPS now works correctly
36
* Fixed issue where Slavedriver's Hand was granting Blood Magic to all skills

Classes/PassiveSpec.lua

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ local m_min = math.min
1313
local m_max = math.max
1414
local m_floor = math.floor
1515

16+
local nodeMigrate32_33 = {
17+
[17788] = 38129,
18+
[38807] = 63639,
19+
[5607] = 62069,
20+
[61547] = 31583,
21+
[29619] = 1600,
22+
}
23+
1624
local PassiveSpecClass = common.NewClass("PassiveSpec", "UndoHandler", function(self, build)
1725
self.UndoHandler()
1826

@@ -96,11 +104,20 @@ function PassiveSpecClass:Save(xml)
96104
self.modFlag = false
97105
end
98106

107+
function PassiveSpecClass:MigrateNodeId(nodeId)
108+
if self.build.targetVersion == "3_0" then
109+
-- Migration for 3.2 -> 3.3
110+
return nodeMigrate32_33[nodeId] or nodeId
111+
end
112+
return nodeId
113+
end
114+
99115
-- Import passive spec from the provided class IDs and node hash list
100116
function PassiveSpecClass:ImportFromNodeList(classId, ascendClassId, hashList)
101117
self:ResetNodes()
102118
self:SelectClass(classId)
103119
for _, id in pairs(hashList) do
120+
id = self:MigrateNodeId(id)
104121
local node = self.nodes[id]
105122
if node then
106123
node.alloc = true
@@ -152,7 +169,7 @@ function PassiveSpecClass:DecodeURL(url)
152169
self:ResetNodes()
153170
self:SelectClass(classId)
154171
for i = 1, #nodes - 1, 2 do
155-
local id = nodes:byte(i) * 256 + nodes:byte(i + 1)
172+
local id = self:MigrateNodeId(nodes:byte(i) * 256 + nodes:byte(i + 1))
156173
local node = self.nodes[id]
157174
if node then
158175
node.alloc = true

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
VERSION[1.4.89][2018/05/31]
2+
* 3.2 Shadow passive trees will now migrate to 3.3 without a full reset
13
VERSION[1.4.88][2018/05/30]
24
* Sorting unique flasks by DPS now works correctly
35
* Fixed issue where Slavedriver's Hand was granting Blood Magic to all skills

manifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<PoBVersion>
3-
<Version number="1.4.88"/>
3+
<Version number="1.4.89"/>
44
<Source part="program" url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/"/>
55
<Source part="tree" url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/tree.zip"/>
66
<Source url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/runtime-win32.zip" part="runtime" platform="win32"/>
77
<File sha1="16ea2d48919334a5c49b48ac18d456f8f121b09c" name="Launch.lua" part="program"/>
88
<File sha1="72b9bea1871e94a643e4471fd84bbedbc7810336" name="UpdateCheck.lua" part="program"/>
99
<File sha1="4f17937f2b37784e169a3792b235f2a0a3961e61" name="UpdateApply.lua" part="program"/>
10-
<File sha1="475f9809559fb3bda8e74ebefe931a4d38fe7a4c" name="changelog.txt" part="program"/>
10+
<File sha1="6224ccbcf54720af81114cbd6731f3e3c3559a03" name="changelog.txt" part="program"/>
1111
<File sha1="51a3c1027381bb36666568aaceec843164f8c957" name="Classes/BuildListControl.lua" part="program"/>
1212
<File sha1="f85e8b60ff9bb41a3cc4ba8044f7a49163fdedd3" name="Classes/ButtonControl.lua" part="program"/>
1313
<File sha1="87d6d7258d2ac744c75205375418d3e9bf730562" name="Classes/CalcBreakdownControl.lua" part="program"/>
@@ -35,7 +35,7 @@
3535
<File sha1="afd15b62431790e77ad40640c7a005b4e9baaed2" name="Classes/ModList.lua" part="program"/>
3636
<File sha1="dbbc79511bd8867726fd0a10658927dd55ef4487" name="Classes/ModStore.lua" part="program"/>
3737
<File sha1="9bc0d8791e7825e52070e96e7894d29fad70cf98" name="Classes/NotesTab.lua" part="program"/>
38-
<File sha1="88256053e4cbc5ae131fc3badc2e1cc42d7f183e" name="Classes/PassiveSpec.lua" part="program"/>
38+
<File sha1="ed0fa3b89bc332825e7c78b7c9cb053656e1f11f" name="Classes/PassiveSpec.lua" part="program"/>
3939
<File sha1="1080dfd1b2ff05b367e7da76e4223d13746ed5e6" name="Classes/PassiveSpecListControl.lua" part="program"/>
4040
<File sha1="1f39203843b433dbf41917d013a9037e929ddd8e" name="Classes/PassiveTree.lua" part="program"/>
4141
<File sha1="2a2df42102e9e0d6cc9dcc77170e17627737a428" name="Classes/PassiveTreeView.lua" part="program"/>

0 commit comments

Comments
 (0)