Move item inv size and item dimensions from records to external function

This commit is contained in:
2024-11-26 23:36:08 +00:00
parent 9534698a24
commit b21513c4dd
22 changed files with 187 additions and 176 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ module Dodge.Render.HUD (
drawHUD,
) where
import Dodge.Item.InvSize
import Control.Applicative
import Control.Lens
import Control.Monad
@@ -215,7 +216,7 @@ closeObjectInfo n x = case x of
floorItemPickupInfo :: Int -> Item -> String
floorItemPickupInfo n itm
| n >= _itInvSize itm = ", but you have space to pick it up."
| n >= itInvHeight itm = ", but you have space to pick it up."
| otherwise = ", and you don't have space to pick it up."
-- note the use of ^?!