Release 1.16
- Fixed bug with jewel attribute totals
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -48,6 +48,9 @@ Head over to the [Releases](https://github.com/Openarl/PathOfBuilding/releases)
|
||||

|
||||
|
||||
## 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
|
||||
|
||||
Reference in New Issue
Block a user