Skip to content

Commit 53d0be3

Browse files
committed
small clean up
1 parent ed102fd commit 53d0be3

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/Classes/PassiveTreeView.lua

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,15 +1073,13 @@ end
10731073

10741074
function PassiveTreeViewClass:AddNodeName(tooltip, node, build)
10751075
tooltip:SetRecipe(node.infoRecipe)
1076-
if node.type == "Normal" then
1077-
tooltip.itemTooltip = "PASSIVE"
1078-
elseif node.type == "Notable" then
1079-
tooltip.itemTooltip = "NOTABLE"
1080-
elseif node.type == "Socket" then
1081-
tooltip.itemTooltip = "JEWEL"
1082-
elseif node.type == "Keystone" then -- keystone runs but still prints default header
1083-
tooltip.itemTooltip = "KEYSTONE"
1084-
end
1076+
local tooltipMap = {
1077+
Normal = "PASSIVE",
1078+
Notable = "NOTABLE",
1079+
Socket = "JEWEL",
1080+
Keystone = "KEYSTONE",
1081+
}
1082+
tooltip.itemTooltip = tooltipMap[node.type] or "UNKNOWN"
10851083
tooltip:AddLine(24, "^7"..node.dn..(launch.devModeAlt and " ["..node.id.."]" or ""))
10861084
if launch.devModeAlt and node.id > 65535 then
10871085
-- Decompose cluster node Id

0 commit comments

Comments
 (0)