From 5d0afedcf57b1d5a517da47f68e3458be8c7dd58 Mon Sep 17 00:00:00 2001 From: kevinz000 Date: Tue, 19 Sep 2017 08:56:16 -0700 Subject: [PATCH] Fixes safes not having adjacency checks (#30859) * Update safe.dm * Update safe.dm --- code/game/objects/structures/safe.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index 30ce0c7f996..ce15675d1fd 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -96,7 +96,10 @@ FLOOR SAFES if(!ishuman(usr)) return var/mob/living/carbon/human/user = usr - + + if(!user.canUseTopic(src)) + return + var/canhear = 0 if(user.is_holding_item_of_type(/obj/item/clothing/neck/stethoscope)) canhear = 1 @@ -199,4 +202,4 @@ FLOOR SAFES /obj/structure/safe/floor/hide(var/intact) - invisibility = intact ? INVISIBILITY_MAXIMUM : 0 \ No newline at end of file + invisibility = intact ? INVISIBILITY_MAXIMUM : 0