Tweak equipment draw
This commit is contained in:
@@ -225,20 +225,12 @@ youDropItem w = case yourItem w ^? itCurseStatus of
|
||||
where
|
||||
cr = you w
|
||||
{- | Copy an inventory item to the floor. -}
|
||||
copyInvItemToFloor
|
||||
:: Creature
|
||||
-> Int -- ^ Inventory position
|
||||
-> World
|
||||
-> World
|
||||
copyInvItemToFloor :: Creature -> Int -> World -> World
|
||||
copyInvItemToFloor cr i w = case _crInv cr IM.! i of
|
||||
NoItem -> w
|
||||
it -> copyItemToFloor (_crPos cr) it w
|
||||
{- | Copy an item to the floor. -}
|
||||
copyItemToFloor
|
||||
:: Point2
|
||||
-> Item
|
||||
-> World
|
||||
-> World
|
||||
copyItemToFloor :: Point2 -> Item -> World -> World
|
||||
copyItemToFloor pos it w = w'
|
||||
& floorItems %~ IM.insert flid theflit
|
||||
& updateLocation
|
||||
|
||||
Reference in New Issue
Block a user