Cleanup
This commit is contained in:
@@ -25,7 +25,7 @@ import qualified Data.Sequence as Seq
|
||||
--import qualified Data.IntMap.Strict as IM
|
||||
|
||||
aLaser :: Creature -> World -> World
|
||||
aLaser cr w = over particles (makeLaserAt phaseV pos dir : ) w
|
||||
aLaser cr = particles %~ (makeLaserAt phaseV pos dir : )
|
||||
where
|
||||
pos = _crPos cr +.+ ((_crRad cr +3) *.* unitVectorAtAngle dir)
|
||||
dir = _crDir cr
|
||||
|
||||
Reference in New Issue
Block a user