Add capability to examine you (empty slots) and close objects

This commit is contained in:
2023-01-11 22:23:01 +00:00
parent 25912fe3eb
commit 994496e964
4 changed files with 65 additions and 38 deletions
+2
View File
@@ -23,6 +23,7 @@ module Dodge.Inventory (
crInvSize,
selectedCloseObject,
invDimColor,
trimapAugmentInv,
) where
import Color
@@ -102,6 +103,7 @@ augmentedInvSizes :: World -> IM.IntMap Int
augmentedInvSizes = trimapAugmentInv itSlotsTaken 1 closeObjectSize
trimapAugmentInv :: (Item -> a) -> a -> (Either FloorItem Button -> a) -> World -> IM.IntMap a
{-# INLINE trimapAugmentInv #-}
trimapAugmentInv f x g w =
IM.insert n x $
IM.union