Use Item as argument in lUse rather than Int

This commit is contained in:
2022-05-23 13:32:29 +01:00
parent 361dba88a0
commit a870457f2a
6 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ defaultlUse = LeftUse
, _useHammer = NoHammer
}
luseInstantNoH :: (Creature -> Int -> World -> World) -> ItemUse
luseInstantNoH :: (Item -> Creature -> World -> World) -> ItemUse
luseInstantNoH f = LeftUse
{ _lUse = f
, _useDelay = NoDelay