Add in "linear" lWorld to separate time reversable worlds
This commit is contained in:
@@ -10,8 +10,8 @@ updateTractorBeam w pj
|
||||
| _tbTime pj <= 0 = (w, Nothing)
|
||||
| otherwise =
|
||||
( w
|
||||
& cWorld . creatures %~ IM.map (tractCr pullVel pos outpos)
|
||||
& cWorld . floorItems %~ IM.map (tractFlIt pullVel pos outpos)
|
||||
& cWorld . lWorld . creatures %~ IM.map (tractCr pullVel pos outpos)
|
||||
& cWorld . lWorld . floorItems %~ IM.map (tractFlIt pullVel pos outpos)
|
||||
, Just (pj & tbTime -~ 1)
|
||||
)
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user