Set lasGun muzzle position correctly

This commit is contained in:
2021-12-11 23:11:13 +00:00
parent 6cd59d99bc
commit ec51efabca
4 changed files with 47 additions and 59 deletions
+1 -6
View File
@@ -2,8 +2,7 @@
{- | Actions performed by creatures within the world
-}
module Dodge.Creature.Action
( performActionsR
, performActions
( performActions
, stripNoItems
, setMinInvSize
, dropUnselected
@@ -42,7 +41,6 @@ import Control.Lens
--import Control.Applicative
import Data.Maybe
import Data.List (findIndex)
import Control.Monad.Reader
--import qualified Data.Map as M
performActions :: World -> Creature -> Creature
performActions w cr = cr
@@ -51,9 +49,6 @@ performActions w cr = cr
where
(iss, mayas) = unzip $ map (performAction cr w) $ cr ^. crActionPlan . crAction
performActionsR :: Creature -> Reader World Creature
performActionsR cr = reader $ \w -> performActions w cr
type OutAction = ( [Impulse] , Maybe Action )
performAimAt :: Creature -> World -> Int -> Point2 -> OutAction