Start adding filters to selection lists

This commit is contained in:
2023-01-15 11:55:32 +00:00
parent 6f1162f7b9
commit 64b1c2761e
16 changed files with 128 additions and 66 deletions
+6 -1
View File
@@ -8,6 +8,7 @@ module Dodge.Combine (
enterCombineInv,
) where
import qualified Data.Text as T
import qualified Data.IntSet as IS
import Control.Lens
import Control.Monad
@@ -92,7 +93,11 @@ toggleCombineInv w = case w ^. hud . hudElement of
_ -> w & enterCombineInv
enterCombineInv :: World -> World
enterCombineInv w = w & hud . hudElement . subInventory .~ CombineInventory mi
enterCombineInv w = w & hud . hudElement . subInventory .~ CombineInventory
{ _subInvSel = mi
, _subInvRegex = T.pack ""
, _subInvRegexInput = False
}
where
mi = 0 <$ listToMaybe (combineItemListYou w)