refactor: pass creature to weapon use function, as opposed to just id
This commit is contained in:
+2
-2
@@ -197,7 +197,7 @@ data Item
|
||||
, _wpReloadState :: Int
|
||||
, _itUseRate :: Int
|
||||
, _itUseTime :: Int
|
||||
, _wpFire :: Int -> World -> World
|
||||
, _itUse :: Creature -> World -> World
|
||||
, _wpSpread :: Float
|
||||
, _wpRange :: Float
|
||||
, _itHammer :: HammerPosition
|
||||
@@ -265,7 +265,7 @@ data Item
|
||||
, _itFloorPict :: Picture
|
||||
, _twMaxRange :: Float
|
||||
, _twAccuracy :: Float
|
||||
, _twFire :: Int -> World -> World
|
||||
, _itUse :: Creature -> World -> World
|
||||
, _itUseRate :: Int
|
||||
, _itUseTime :: Int
|
||||
, _itAimingSpeed :: Float
|
||||
|
||||
Reference in New Issue
Block a user