Cleanup
This commit is contained in:
@@ -177,16 +177,13 @@ blinkActionFail cr w = w
|
||||
p3 = maybe p1 (mvPointTowardAtSpeed r cpos . fst) p2
|
||||
|
||||
{- | Teleport a creature to the mouse position -}
|
||||
blinkAction
|
||||
:: Creature
|
||||
-> World
|
||||
-> World
|
||||
blinkAction cr w
|
||||
= soundMultiFrom [TeleSound 0,TeleSound 1] p3 teleS Nothing
|
||||
. over distortions (distortionBulge ++)
|
||||
. set (creatures . ix cid . crPos) p3
|
||||
. blinkShockwave cid p3
|
||||
$ inverseShockwaveAt cpos 40 2 2 w
|
||||
blinkAction :: Creature -> World -> World
|
||||
blinkAction cr w = w
|
||||
& soundMultiFrom [TeleSound 0,TeleSound 1] p3 teleS Nothing
|
||||
& distortions .++~ distortionBulge
|
||||
& creatures . ix cid . crPos .~ p3
|
||||
& blinkShockwave cid p3
|
||||
& inverseShockwaveAt cpos 40 2 2
|
||||
where
|
||||
distR = 120
|
||||
distortionBulge =
|
||||
|
||||
Reference in New Issue
Block a user