mirror of
https://github.com/parnic/breakables.git
synced 2025-06-16 17:40:13 -05:00
Fix lockbox skill level detection
This commit is contained in:
@ -1514,16 +1514,10 @@ function Breakables:PlayerHasSkillToPickItem(bagId, slotId)
|
|||||||
end
|
end
|
||||||
|
|
||||||
TooltipUtil.SurfaceArgs(tooltipData)
|
TooltipUtil.SurfaceArgs(tooltipData)
|
||||||
local inspectNextLine = false
|
|
||||||
for _, line in ipairs(tooltipData.lines) do
|
for _, line in ipairs(tooltipData.lines) do
|
||||||
TooltipUtil.SurfaceArgs(line)
|
TooltipUtil.SurfaceArgs(line)
|
||||||
if inspectNextLine then
|
if line.leftText == LOCKED then
|
||||||
inspectNextLine = false
|
return not (line.leftColor and line.leftColor.r == 1 and line.leftColor.g < 0.2 and line.leftColor.b < 0.2)
|
||||||
if line.leftColor and line.leftColor.r == 1 then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
elseif line.leftText == LOCKED then
|
|
||||||
inspectNextLine = true
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user