Release 1.16

- Fixed bug with jewel attribute totals
This commit is contained in:
Openarl
2016-10-02 22:50:15 +10:00
parent 4a70a0c373
commit fc7d9036a6
4 changed files with 13 additions and 5 deletions

View File

@@ -438,13 +438,14 @@ function ItemsTabClass:AddItemTooltip(item, slot, dbMode)
if item.jewelRadiusIndex then
main:AddTooltipLine(16, "^x7F7F7FRadius: ^7"..data.jewelRadius[item.jewelRadiusIndex].label)
end
if item.jewelRadiusData then
if item.jewelRadiusData and slot and item.jewelRadiusData[slot.nodeId] then
local radiusData = item.jewelRadiusData[slot.nodeId]
local line
local labels = { "Str", "Dex", "Int" }
local codes = { data.colorCodes.MARAUDER, data.colorCodes.RANGER, data.colorCodes.WITCH }
for i, stat in ipairs({"strBase","dexBase","intBase"}) do
if item.jewelRadiusData[stat] and item.jewelRadiusData[stat] ~= 0 then
line = (line and line .. ", " or "") .. s_format("%s%d %s^7", codes[i], item.jewelRadiusData[stat], labels[i])
if radiusData[stat] and radiusData[stat] ~= 0 then
line = (line and line .. ", " or "") .. s_format("%s%d %s^7", codes[i], radiusData[stat], labels[i])
end
end
if line then

View File

@@ -485,7 +485,7 @@ function PassiveTreeViewClass:AddNodeTooltip(node, build)
if node.type == "socket" and node.alloc then
local socket, jewel = build.itemsTab:GetSocketAndJewelForNodeID(node.id)
if jewel then
build.itemsTab:AddItemTooltip(jewel)
build.itemsTab:AddItemTooltip(jewel, { nodeId = node.id })
else
main:AddTooltipLine(24, "^7"..node.dn..(launch.devMode and IsKeyDown("ALT") and " ["..node.id.."]" or ""))
end

View File

@@ -347,7 +347,10 @@ local function buildNodeModList(env, nodeList, finishJewels)
for _, rad in pairs(env.radiusJewelList) do
rad.func(nil, modList, rad.data)
if env.mode == "MAIN" then
rad.item.jewelRadiusData = rad.data
if not rad.item.jewelRadiusData then
rad.item.jewelRadiusData = { }
end
rad.item.jewelRadiusData[rad.nodeId] = rad.data
end
end
end
@@ -567,6 +570,7 @@ local function mergeMainMods(env, repSlotName, repItem)
y = node.y,
func = func,
item = item,
nodeId = slot.nodeId,
data = { }
})
end

View File

@@ -48,6 +48,9 @@ Head over to the [Releases](https://github.com/Openarl/PathOfBuilding/releases)
![ss3](https://cloud.githubusercontent.com/assets/19189971/18089780/f0ff234a-6f04-11e6-8c88-6193fe59a5c4.png)
## Changelog
### 1.1.6 - 2016/10/02
* Fixed bug causing issues with the new jewel attribute totals when a jewel is used multiple times
### 1.1.5 - 2016/10/01
* Jewel tooltips now show totals for any relevant attributes (Str, Dex, Int) allocated within their radius
* For example, Eldritch Knowledge shows Intelligence, and Spire of Stone shows Strength