Continue inventory tweak
This commit is contained in:
@@ -190,7 +190,7 @@ dropItem cr invid = rmInvItem cid invid . copyInvItemToFloor cr invid -- . maybe
|
||||
-- | Get your creature to drop the item under the cursor.
|
||||
youDropItem :: World -> World
|
||||
youDropItem w = fromMaybe w $ do
|
||||
curpos <- you w ^? crManipulation . isel . ispItem
|
||||
curpos <- you w ^? crManipulation . manObject . inInventory . ispItem
|
||||
guard $ not $ _crInvLock (you w) || cursed
|
||||
return $ w
|
||||
& dropItem cr curpos
|
||||
|
||||
Reference in New Issue
Block a user