Hide group selection in combine inventory, mempty on combine

This commit is contained in:
2024-11-25 21:55:10 +00:00
parent 445ca84358
commit f36f4b8536
3 changed files with 7 additions and 10 deletions
+1 -4
View File
@@ -268,9 +268,6 @@ shiftInvItems k x ab bn xs ss w = setSelWhileDragging . fromMaybe w $ do
guard $ Just (k,maxi+1) /= bn
return $ shiftInvItemsDown k xs w
_ -> Nothing
-- if x < (k,mini)
-- then
-- else
setSelWhileDragging :: World -> World
setSelWhileDragging w = fromMaybe w $ do
@@ -539,7 +536,6 @@ toggleTweakInv w = case w ^? hud . hudElement . subInventory of
thepointer = hud . hudElement . subInventory
tryCombine ::
-- IM.IntMap (SelectionSection CombinableItem) ->
(Int, Int) ->
World ->
World
@@ -551,6 +547,7 @@ tryCombine (i, j) w = fromMaybe w $ do
snd (createItemYou it (foldr (destroyInvItem 0) w (sort is)))
& cWorld . lWorld . creatures . ix 0 . crHammerPosition .~ HammerDown
& soundStart InventorySound p wrench1S Nothing
& hud . hudElement . diSelection . _Just . _3 .~ mempty
maybeExitCombine :: World -> World
maybeExitCombine w