Commit before reorganising/removing SSSExtra

This commit is contained in:
2024-10-25 21:35:43 +01:00
parent f6c136cfd6
commit 069392bd33
3 changed files with 52 additions and 45 deletions
+1 -4
View File
@@ -7,11 +7,9 @@ module Dodge.InputFocus (
inInputFocus,
regexScope,
regexFocus,
-- , inputFocus'
) where
import Control.Monad
--import Data.IntMap.Strict (IntMap)
import Data.Maybe
import Dodge.Data.SelectionList
import Dodge.Data.World
@@ -27,8 +25,7 @@ inTermFocus w = fromMaybe False $ do
regexScope ::
(Applicative f) =>
World ->
Maybe
((SSSExtra -> f SSSExtra) -> HUDElement -> f HUDElement, Int)
Maybe ((SSSExtra -> f SSSExtra) -> HUDElement -> f HUDElement, Int)
regexScope w = case w ^? hud . hudElement . subInventory of
Just NoSubInventory{} -> case he ^? diSelection . _Just of
Just (-1, _) -> di (-1)