Implement/improve null/un/binary logic gates
This commit is contained in:
@@ -27,6 +27,8 @@ doInvEffect = \case
|
||||
ItemCopierUpdate -> copierItemUpdate
|
||||
ItemReduceWarmTime -> \itm _ -> pointerToItem itm . itUse . heldDelay . warmTime
|
||||
%~ (max 0 . subtract 1)
|
||||
-- use of pointerToItemID rather than pointerToItem because the item
|
||||
-- location is changing
|
||||
ItemSetWarmTime x -> \itm _ -> pointerToItemID (_itID itm) . itUse . heldDelay . warmTime
|
||||
.~ x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user