From cccb4f38db32b24822f342f3ed83b448d6c7d33d Mon Sep 17 00:00:00 2001 From: justin Date: Thu, 26 Jun 2025 09:34:51 +0100 Subject: [PATCH] Reset warmup/cooldown when dropping machine pistol Ideally items should be updateable when not equipped, then this reset would not be necessary. --- src/Dodge/Item/BackgroundEffect.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Dodge/Item/BackgroundEffect.hs b/src/Dodge/Item/BackgroundEffect.hs index ba040d704..65f42515a 100644 --- a/src/Dodge/Item/BackgroundEffect.hs +++ b/src/Dodge/Item/BackgroundEffect.hs @@ -67,6 +67,8 @@ itEffectOnPickup _ _ = id itEffectOnDrop :: Item -> Creature -> World -> World itEffectOnDrop itm cr w = case itm ^. itType of HELD MINIGUNX{} -> w & pointerToItemID (_itID itm) . itParams . wTime .~ 0 + HELD MACHINEPISTOL{} -> w & pointerToItemID (_itID itm) . itParams + .~ WarmTime 0 False Nothing ITEMSCAN -> cancelExamineInventory w HELD FLATSHIELD -> removeShieldWall itm cr w _ -> w