Add burst fire, tentative inventory locking
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module Dodge.Inventory.Lock where
|
||||
import Dodge.Data
|
||||
import Control.Lens
|
||||
|
||||
lockInv :: Int -> World -> World
|
||||
lockInv cid = creatures . ix cid . crInvLock %~ (|| True)
|
||||
|
||||
unlockInv :: Int -> World -> World
|
||||
unlockInv cid = creatures . ix cid . crInvLock %~ (&& False)
|
||||
Reference in New Issue
Block a user