Separate out concrete part of world
This commit is contained in:
@@ -3,7 +3,7 @@ import Dodge.Data
|
||||
import Control.Lens
|
||||
|
||||
lockInv :: Int -> World -> World
|
||||
lockInv cid = creatures . ix cid . crInvLock %~ (|| True)
|
||||
lockInv cid = cWorld . creatures . ix cid . crInvLock %~ (|| True)
|
||||
|
||||
unlockInv :: Int -> World -> World
|
||||
unlockInv cid = creatures . ix cid . crInvLock %~ (&& False)
|
||||
unlockInv cid = cWorld . creatures . ix cid . crInvLock %~ (&& False)
|
||||
|
||||
Reference in New Issue
Block a user