Cleanup movement

This commit is contained in:
2022-05-21 22:53:25 +01:00
parent 5550b5eb95
commit ee31fcbdd9
2 changed files with 22 additions and 19 deletions
+1 -6
View File
@@ -20,9 +20,6 @@ pictureWeaponOnAim
-> Item
-> SPic
pictureWeaponOnAim = pictureWeaponAim itSPic
--pictureWeaponOnAim cr itm = case _itInvPos itm of
-- Just i -> pictureWeaponOnAimItem (itSPic itm) cr i
-- Nothing -> mempty
itSPic :: Item -> SPic
itSPic it = _dimSPic (_itDimension it) it
@@ -33,10 +30,8 @@ pictureWeaponAim
-> Item
-> SPic
pictureWeaponAim f cr itm = case _itInvPos itm of
Just i -> pictureWeaponOnAimItem pic cr i
Just i -> pictureWeaponOnAimItem (f itm) cr i
Nothing -> mempty
where
pic = f itm
{- | Places an item picture onto a creature when the item is selected. -}
pictureWeaponOnAimItem