Add in "linear" lWorld to separate time reversable worlds
This commit is contained in:
@@ -28,7 +28,7 @@ moveShockwave w sw
|
||||
tFraction = fromIntegral t / fromIntegral (_swMaxTime sw)
|
||||
rad = r - (3 / 4) * r * tFraction
|
||||
doDams w' =
|
||||
over (cWorld . creatures) (IM.map damCr) $
|
||||
over (cWorld . lWorld . creatures) (IM.map damCr) $
|
||||
foldl'
|
||||
(flip $ damageWall (Damage EXPLOSIVE 10000 p p p NoDamageEffect))
|
||||
w'
|
||||
@@ -62,7 +62,7 @@ moveInverseShockwave w sw
|
||||
r = _swRad sw
|
||||
t = _swTimer sw
|
||||
rad = r - 0.1 * r * fromIntegral (10 - t)
|
||||
dams = over (cWorld . creatures) (IM.map damCr) -- . flip (foldr (damageBlocksBy 1)) hitBlocks
|
||||
dams = over (cWorld . lWorld . creatures) (IM.map damCr) -- . flip (foldr (damageBlocksBy 1)) hitBlocks
|
||||
-- hitBlocks = wallsOnCirc' p rad $ wallsNearPoint' p w
|
||||
damCr cr
|
||||
| dist (_crPos cr) p >= rad + _crRad cr = cr
|
||||
|
||||
Reference in New Issue
Block a user