Skip to content

Commit

Permalink
Added a debug information type for Item Bonuses
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUnicke committed Dec 13, 2024
1 parent 8680ab2 commit e9b1e4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Settings/Pages/Interface - Information.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1212,4 +1212,17 @@ settings.CreateInformationType("hash", {
priority = 99999,
text = "DEBUG: hash",
HideCheckBox = not app.Debugging,
})
settings.CreateInformationType("bonuses", {
priority = 99999,
text = "DEBUG: Item Bonuses",
HideCheckBox = not app.Debugging,
Process = function(t, data, tooltipInfo)
local bonuses = data.bonuses
if not bonuses or #bonuses < 1 then return end
tinsert(tooltipInfo, {
left = "Item Bonuses",
right = app.TableConcat(bonuses, nil, nil, " | ")
});
end
})

0 comments on commit e9b1e4f

Please sign in to comment.