Tweak item dropping
This commit is contained in:
@@ -111,7 +111,7 @@ tryDropSelected mpos w = do
|
||||
cr <- w ^? cWorld . lWorld . creatures . ix 0
|
||||
(0, _) <- w ^? hud . hudElement . diSelection . _Just
|
||||
xs <- w ^? hud . hudElement . diSelectionExtra
|
||||
return $ IS.foldr (dropItem cr) w xs
|
||||
return . foldl' (flip $ dropItem cr) w . IS.toDescList $ xs
|
||||
|
||||
tryPickupSelected :: Int -> Maybe (Int,Int) -> World -> Maybe World
|
||||
tryPickupSelected k mpos w = do
|
||||
|
||||
Reference in New Issue
Block a user