Add in "linear" lWorld to separate time reversable worlds
This commit is contained in:
@@ -4,7 +4,7 @@ import Control.Lens
|
||||
import Dodge.Data.World
|
||||
|
||||
lockInv :: Int -> World -> World
|
||||
lockInv cid = cWorld . creatures . ix cid . crInvLock ||~ True
|
||||
lockInv cid = cWorld . lWorld . creatures . ix cid . crInvLock ||~ True
|
||||
|
||||
unlockInv :: Int -> World -> World
|
||||
unlockInv cid = cWorld . creatures . ix cid . crInvLock &&~ False
|
||||
unlockInv cid = cWorld . lWorld . creatures . ix cid . crInvLock &&~ False
|
||||
|
||||
Reference in New Issue
Block a user