Move inventory filter to different section of selection list
This commit is contained in:
@@ -21,12 +21,7 @@ inInvRegex :: World -> Bool
|
||||
inInvRegex w = fromMaybe False $ do
|
||||
sss <- w ^? hud . hudElement . diSections
|
||||
i <- sss ^? sssSelPos . _Just
|
||||
ss <- sss ^? sssSections . ix i
|
||||
j <- ss ^? ssCursor . _Just . scurSel
|
||||
si <- ss ^? ssItems . ix j
|
||||
return $ case si of
|
||||
SelectionRegex {} -> True
|
||||
_ -> False
|
||||
return $ i == (-1)
|
||||
|
||||
inSubInvRegex :: World -> Bool
|
||||
inSubInvRegex w = fromMaybe False $ do
|
||||
|
||||
Reference in New Issue
Block a user