From 9831f3efbdce12c9e404b4dd565f87c542d301cb Mon Sep 17 00:00:00 2001 From: GeneriedJenelle Date: Thu, 19 Mar 2020 03:33:49 +0000 Subject: [PATCH] Fixes taking items out of sewn plushies Just fixes an oversight/check failure. Currently you can take items out of plushies that are sewn shut. With this fix you'll be able to only take things out when you re-open 'em again. --- code/game/objects/items/toys.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index fa84ea780f..8ec61079f6 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -902,7 +902,7 @@ /obj/structure/plushie/attack_hand(mob/user) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - if(stored_item && !searching) + if(stored_item && opened && !searching) searching = TRUE if(do_after(user, 10)) to_chat(user, "You find \icon[stored_item] [stored_item] in [src]!") @@ -999,7 +999,7 @@ to_chat(user, "You can see something in there...") /obj/item/toy/plushie/attack_self(mob/user as mob) - if(stored_item && !searching) + if(stored_item && opened && !searching) searching = TRUE if(do_after(user, 10)) to_chat(user, "You find \icon[stored_item] [stored_item] in [src]!")