Skip to content

Commit f7b9c96

Browse files
Blitz54LocalIdentity
andauthored
Add Megalomaniac to Unique list (#856)
* megalomaniac stuff * Grabs latest tree instead of specific one * tiny fix * Show mods in tooltip --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 24a0da0 commit f7b9c96

File tree

3 files changed

+650
-0
lines changed

3 files changed

+650
-0
lines changed

src/Classes/ItemsTab.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,19 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
27622762
for _, modLine in ipairs(modList) do
27632763
if item:CheckModLineVariant(modLine) then
27642764
tooltip:AddLine(16, itemLib.formatModLine(modLine, dbMode))
2765+
-- Show mods from granted Notables
2766+
if modLine.modList[1] and modLine.modList[1].name == "GrantedPassive" then
2767+
local node = self.build.spec.tree.notableMap[modLine.modList[1].value]
2768+
if node then
2769+
for _, stat in ipairs(node.sd) do
2770+
tooltip:AddLine(16, "^x7F7F7F"..stat)
2771+
end
2772+
end
2773+
-- Add separator only for anoints
2774+
if item.implicitModLines then
2775+
tooltip:AddSeparator(10)
2776+
end
2777+
end
27652778
end
27662779
end
27672780
tooltip:AddSeparator(10)

0 commit comments

Comments
 (0)