Defunction-ify item modules, requires more cleanup
This commit is contained in:
@@ -14,13 +14,13 @@ import qualified Data.IntMap.Strict as IM
|
||||
|
||||
medkit :: Int -> Item
|
||||
medkit i = defaultConsumable
|
||||
{ _itName = "MEDKIT" ++ show i
|
||||
, _itUse = ConsumeUse
|
||||
{ _itUse = ConsumeUse
|
||||
{_cUse = \_ cr w -> w & creatures . ix (_crID cr) . crHP +~ i
|
||||
}
|
||||
, _itEquipPict = pictureWeaponAim $ const $ (,) emptySH $ color blue $ circleSolid 3
|
||||
, _itID = Nothing
|
||||
}
|
||||
& itType . iyBase .~ MEDKIT i
|
||||
|
||||
heal25 :: Int -> World -> Maybe World
|
||||
heal25 = heal 25
|
||||
|
||||
Reference in New Issue
Block a user