Flatten values in creature manipulation data types
This commit is contained in:
@@ -188,7 +188,7 @@ dropItem cr invid = rmInvItem (_crID cr) invid .
|
||||
youDropItem :: World -> World
|
||||
youDropItem w = fromMaybe w $ do
|
||||
curpos <-
|
||||
you w ^? crManipulation . manObject . inInventory . imSelectedItem
|
||||
you w ^? crManipulation . manObject . imSelectedItem
|
||||
<|> fmap fst (IM.lookupMax =<< w ^? hud . hudElement . diSections . sssSections . ix 0 . ssItems)
|
||||
guard $ not $ _crInvLock (you w) || cursed
|
||||
return $
|
||||
|
||||
Reference in New Issue
Block a user