Flatten HUDElement
This commit is contained in:
@@ -188,8 +188,8 @@ dropItem cr invid w' =
|
||||
itid <- cr ^? crInv . ix (NInt invid)
|
||||
w' ^? cWorld . lWorld . items . ix itid
|
||||
maybeshiftseldown w = fromMaybe w $ do
|
||||
3 <- w ^? hud . hudElement . diSelection . _Just . _1
|
||||
return $ w & hud . hudElement . diSelection . _Just . _2 +~ 1
|
||||
3 <- w ^? hud . diSelection . _Just . _1
|
||||
return $ w & hud . diSelection . _Just . _2 +~ 1
|
||||
|
||||
-- | Get your creature to drop the item under the cursor.
|
||||
youDropItem :: World -> World
|
||||
|
||||
Reference in New Issue
Block a user