Fix combinations filter

This commit is contained in:
2023-02-21 11:10:59 +00:00
parent 4904c57972
commit 8b0e1eab81
9 changed files with 211 additions and 227 deletions
+6 -1
View File
@@ -3,6 +3,11 @@ module Dodge.Update.Input (
) where
--import Control.Monad
--import Control.Monad
--import Control.Monad
import Dodge.DisplayInventory
import Data.List (sort)
import Dodge.Inventory.Add
import Dodge.Data.Combine
@@ -20,7 +25,6 @@ import Data.Maybe
--import Data.Monoid (First)
import Dodge.Base.You
import Dodge.Button.Event
import Dodge.Combine
import Dodge.Creature.Action
import Dodge.Data.Universe
import Dodge.Debug.Terminal
@@ -219,6 +223,7 @@ updateEnterRegex w = case w ^? hud . hudElement . subInventory of
w & cWorld . lWorld . creatures . ix 0 . crManipulation . manObject .~ InNearby SortNearby
& hud . hudElement . diSections %~ enterregex 2
Just CombineInventory{} -> w & hud . hudElement . subInventory . ciSections %~ enterregex (-1)
& hud . hudElement . subInventory . ciSections . sssExtra . sssSelPos ?~ (-1,0)
_ -> w
where
di = w ^. hud . hudElement