Fix slime suck bug

This commit is contained in:
2026-05-18 19:25:07 +01:00
parent 3119f10c2c
commit eb817d34ef
5 changed files with 16 additions and 25 deletions
+2 -3
View File
@@ -454,8 +454,7 @@ itemSidePush = \case
applyInvLock :: Item -> Creature -> World -> World
applyInvLock itm cr = case itemInvLock itm of
i
| i > 0 && cid == 0 ->
i | i > 0 && cid == 0 ->
(cWorld . lWorld . delayedEvents .:~ (i, UnlockInv)) . lockInv
_ -> id
where
@@ -470,7 +469,7 @@ heldItemInvLock :: HeldItemType -> Int
heldItemInvLock = \case
FLAMESPITTER -> 10
VOLLEYGUN i -> i + 1
BURSTRIFLE -> 70
BURSTRIFLE -> 8
_ -> 0
applySoundCME :: Item -> Creature -> World -> World