Tweak equipment draw
This commit is contained in:
+10
-1
@@ -8,11 +8,20 @@ import ShapePicture
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
import Control.Lens
|
||||
pictureWeaponOnAim
|
||||
:: Creature
|
||||
-> Int -- ^ Position of item in inventory
|
||||
-> SPic
|
||||
pictureWeaponOnAim cr i = pictureWeaponOnAimItem pic cr i
|
||||
where
|
||||
it = _crInv cr IM.! i
|
||||
pic = _itFloorPict it it
|
||||
|
||||
pictureWeaponOnAim'
|
||||
:: (Item -> SPic)
|
||||
-> Creature
|
||||
-> Int -- ^ Position of item in inventory
|
||||
-> SPic
|
||||
pictureWeaponOnAim f cr i = pictureWeaponOnAimItem pic cr i
|
||||
pictureWeaponOnAim' f cr i = pictureWeaponOnAimItem pic cr i
|
||||
where
|
||||
pic = f (_crInv cr IM.! i)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user