Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Openarl committed May 30, 2018
2 parents 772454b + 1962383 commit d515d4e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
### 1.4.89 - 2018/05/31
* 3.2 Shadow passive trees will now migrate to 3.3 without a full reset

### 1.4.88 - 2018/05/30
* Sorting unique flasks by DPS now works correctly
* Fixed issue where Slavedriver's Hand was granting Blood Magic to all skills
Expand Down
19 changes: 18 additions & 1 deletion Classes/PassiveSpec.lua
Expand Up @@ -13,6 +13,14 @@ local m_min = math.min
local m_max = math.max
local m_floor = math.floor

local nodeMigrate32_33 = {
[17788] = 38129,
[38807] = 63639,
[5607] = 62069,
[61547] = 31583,
[29619] = 1600,
}

local PassiveSpecClass = common.NewClass("PassiveSpec", "UndoHandler", function(self, build)
self.UndoHandler()

Expand Down Expand Up @@ -96,11 +104,20 @@ function PassiveSpecClass:Save(xml)
self.modFlag = false
end

function PassiveSpecClass:MigrateNodeId(nodeId)
if self.build.targetVersion == "3_0" then
-- Migration for 3.2 -> 3.3
return nodeMigrate32_33[nodeId] or nodeId
end
return nodeId
end

-- Import passive spec from the provided class IDs and node hash list
function PassiveSpecClass:ImportFromNodeList(classId, ascendClassId, hashList)
self:ResetNodes()
self:SelectClass(classId)
for _, id in pairs(hashList) do
id = self:MigrateNodeId(id)
local node = self.nodes[id]
if node then
node.alloc = true
Expand Down Expand Up @@ -152,7 +169,7 @@ function PassiveSpecClass:DecodeURL(url)
self:ResetNodes()
self:SelectClass(classId)
for i = 1, #nodes - 1, 2 do
local id = nodes:byte(i) * 256 + nodes:byte(i + 1)
local id = self:MigrateNodeId(nodes:byte(i) * 256 + nodes:byte(i + 1))
local node = self.nodes[id]
if node then
node.alloc = true
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
@@ -1,3 +1,5 @@
VERSION[1.4.89][2018/05/31]
* 3.2 Shadow passive trees will now migrate to 3.3 without a full reset
VERSION[1.4.88][2018/05/30]
* Sorting unique flasks by DPS now works correctly
* Fixed issue where Slavedriver's Hand was granting Blood Magic to all skills
Expand Down
6 changes: 3 additions & 3 deletions manifest.xml
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<PoBVersion>
<Version number="1.4.88"/>
<Version number="1.4.89"/>
<Source part="program" url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/"/>
<Source part="tree" url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/tree.zip"/>
<Source url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/runtime-win32.zip" part="runtime" platform="win32"/>
<File sha1="16ea2d48919334a5c49b48ac18d456f8f121b09c" name="Launch.lua" part="program"/>
<File sha1="72b9bea1871e94a643e4471fd84bbedbc7810336" name="UpdateCheck.lua" part="program"/>
<File sha1="4f17937f2b37784e169a3792b235f2a0a3961e61" name="UpdateApply.lua" part="program"/>
<File sha1="475f9809559fb3bda8e74ebefe931a4d38fe7a4c" name="changelog.txt" part="program"/>
<File sha1="6224ccbcf54720af81114cbd6731f3e3c3559a03" name="changelog.txt" part="program"/>
<File sha1="51a3c1027381bb36666568aaceec843164f8c957" name="Classes/BuildListControl.lua" part="program"/>
<File sha1="f85e8b60ff9bb41a3cc4ba8044f7a49163fdedd3" name="Classes/ButtonControl.lua" part="program"/>
<File sha1="87d6d7258d2ac744c75205375418d3e9bf730562" name="Classes/CalcBreakdownControl.lua" part="program"/>
Expand Down Expand Up @@ -35,7 +35,7 @@
<File sha1="afd15b62431790e77ad40640c7a005b4e9baaed2" name="Classes/ModList.lua" part="program"/>
<File sha1="dbbc79511bd8867726fd0a10658927dd55ef4487" name="Classes/ModStore.lua" part="program"/>
<File sha1="9bc0d8791e7825e52070e96e7894d29fad70cf98" name="Classes/NotesTab.lua" part="program"/>
<File sha1="88256053e4cbc5ae131fc3badc2e1cc42d7f183e" name="Classes/PassiveSpec.lua" part="program"/>
<File sha1="ed0fa3b89bc332825e7c78b7c9cb053656e1f11f" name="Classes/PassiveSpec.lua" part="program"/>
<File sha1="1080dfd1b2ff05b367e7da76e4223d13746ed5e6" name="Classes/PassiveSpecListControl.lua" part="program"/>
<File sha1="1f39203843b433dbf41917d013a9037e929ddd8e" name="Classes/PassiveTree.lua" part="program"/>
<File sha1="2a2df42102e9e0d6cc9dcc77170e17627737a428" name="Classes/PassiveTreeView.lua" part="program"/>
Expand Down

0 comments on commit d515d4e

Please sign in to comment.