Add in "linear" lWorld to separate time reversable worlds
This commit is contained in:
@@ -21,7 +21,7 @@ blinkActionMousePos cr w =
|
||||
w
|
||||
& soundMultiFrom [TeleSound 0, TeleSound 1] p3 teleS Nothing
|
||||
& blinkDistortions cpos p3
|
||||
& cWorld . creatures . ix cid . crPos .~ p3
|
||||
& cWorld . lWorld . creatures . ix cid . crPos .~ p3
|
||||
& blinkShockwave cid p3
|
||||
& inverseShockwaveAt cpos 40 2 2
|
||||
where
|
||||
@@ -38,7 +38,7 @@ blinkActionMousePos cr w =
|
||||
pushIntoMaybe (x,my) = (x,) <$> my
|
||||
|
||||
blinkDistortions :: Point2 -> Point2 -> World -> World
|
||||
blinkDistortions sp ep = cWorld . distortions .++~ distortionBulge
|
||||
blinkDistortions sp ep = cWorld . lWorld . distortions .++~ distortionBulge
|
||||
where
|
||||
distR = 120
|
||||
distortionBulge =
|
||||
@@ -57,13 +57,13 @@ unsafeBlinkAction cr w
|
||||
| success =
|
||||
soundMultiFrom [TeleSound 0, TeleSound 1] mwp teleS Nothing
|
||||
. blinkDistortions cpos mwp
|
||||
. set (cWorld . creatures . ix cid . crPos) mwp
|
||||
. set (cWorld . lWorld . creatures . ix cid . crPos) mwp
|
||||
. blinkShockwave cid mwp
|
||||
$ inverseShockwaveAt cpos 40 2 2 w
|
||||
| otherwise =
|
||||
w
|
||||
& blinkActionFail cr
|
||||
& cWorld . creatures . ix cid . crState . csDamage
|
||||
& cWorld . lWorld . creatures . ix cid . crState . csDamage
|
||||
.:~ Damage ENTERREMENT 10000 mwp mwp mwp NoDamageEffect
|
||||
where
|
||||
success = fromMaybe True $ do
|
||||
@@ -89,8 +89,8 @@ blinkActionFail ::
|
||||
blinkActionFail cr w =
|
||||
w
|
||||
& soundMultiFrom [TeleSound 0, TeleSound 1] p3 teleS Nothing
|
||||
& cWorld . distortions .:~ distortionBulge
|
||||
& cWorld . creatures . ix cid . crPos .~ p3
|
||||
& cWorld . lWorld . distortions .:~ distortionBulge
|
||||
& cWorld . lWorld . creatures . ix cid . crPos .~ p3
|
||||
& inverseShockwaveAt cpos 40 2 2
|
||||
where
|
||||
distR = 120
|
||||
|
||||
Reference in New Issue
Block a user