From b08c8c49d2c4d0dcf01ef4dc3739dc26f647337c Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 30 Nov 2022 08:15:57 -0600 Subject: [PATCH] Fix lockbox skill level detection --- Breakables.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Breakables.lua b/Breakables.lua index 284b4ab..a3263c0 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -1514,16 +1514,10 @@ function Breakables:PlayerHasSkillToPickItem(bagId, slotId) end TooltipUtil.SurfaceArgs(tooltipData) - local inspectNextLine = false for _, line in ipairs(tooltipData.lines) do TooltipUtil.SurfaceArgs(line) - if inspectNextLine then - inspectNextLine = false - if line.leftColor and line.leftColor.r == 1 then - return false - end - elseif line.leftText == LOCKED then - inspectNextLine = true + if line.leftText == LOCKED then + return not (line.leftColor and line.leftColor.r == 1 and line.leftColor.g < 0.2 and line.leftColor.b < 0.2) end end