Fix bug updating wrong item on drop
This commit is contained in:
@@ -27,7 +27,7 @@ doInvEffect = \case
|
||||
ItemCopierUpdate -> copierItemUpdate
|
||||
ItemReduceWarmTime -> \itm _ -> pointerToItem itm . itUse . heldDelay . warmTime
|
||||
%~ (max 0 . subtract 1)
|
||||
ItemSetWarmTime x -> \itm _ -> pointerToItem itm . itUse . heldDelay . warmTime
|
||||
ItemSetWarmTime x -> \itm _ -> pointerToItemID (_itID itm) . itUse . heldDelay . warmTime
|
||||
.~ x
|
||||
|
||||
copierItemUpdate :: Item -> Creature -> World -> World
|
||||
|
||||
Reference in New Issue
Block a user