Add separate function checking when inventory is filtered

This commit is contained in:
2024-11-03 09:50:18 +00:00
parent 7bafb1e9e6
commit feec061aa6
7 changed files with 75 additions and 61 deletions
+1
View File
@@ -74,6 +74,7 @@ drawInventory sss w cfig =
curs = invCursorParams w
iextra = fromMaybe mempty $ do
inv <- w ^? cWorld . lWorld . creatures . ix 0 . crInv
guard =<< fmap (not . isFilteringInv) (w ^? hud . hudElement . diSections)
return . inventoryExtra sss cfig w $ invAdj inv
drawRootCursor :: World