Remove creature records
This commit is contained in:
@@ -6,8 +6,10 @@ module Dodge.Inventory.Lock (
|
||||
import Control.Lens
|
||||
import Dodge.Data.World
|
||||
|
||||
lockInv :: Int -> World -> World
|
||||
lockInv cid = cWorld . lWorld . creatures . ix cid . crInvLock ||~ True
|
||||
lockInv :: World -> World
|
||||
--lockInv cid = cWorld . lWorld . creatures . ix cid . crInvLock ||~ True
|
||||
lockInv = cWorld . lWorld . lInvLock .~ True
|
||||
|
||||
unlockInv :: Int -> World -> World
|
||||
unlockInv cid = cWorld . lWorld . creatures . ix cid . crInvLock &&~ False
|
||||
--unlockInv :: Int -> World -> World
|
||||
unlockInv :: World -> World
|
||||
unlockInv = cWorld . lWorld . lInvLock .~ False
|
||||
|
||||
Reference in New Issue
Block a user