From fe9d6864c0e137e9fa258550028eeb1bb6c22304 Mon Sep 17 00:00:00 2001 From: PrismaticGynoid Date: Sun, 3 Dec 2017 15:25:04 -0800 Subject: [PATCH] Ports ghosts examining locker contents A port of https://github.com/Baystation12/Baystation12/pull/19436 . Ghosts clicking on a locker or crate to examine it can now see a list of its contents. --- code/game/objects/structures/crates_lockers/closets.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 732540571a..690bba95f8 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -315,6 +315,12 @@ if(!src.toggle()) usr << "It won't budge!" +/obj/structure/closet/attack_ghost(mob/ghost) + if(ghost.client && ghost.client.inquisitive_ghost) + ghost.examinate(src) + if (!src.opened) + to_chat(ghost, "It contains: [english_list(contents)].") + /obj/structure/closet/verb/verb_toggleopen() set src in oview(1) set category = "Object"