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.
This commit is contained in:
PrismaticGynoid
2017-12-03 15:25:04 -08:00
parent e67d91c613
commit fe9d6864c0
@@ -315,6 +315,12 @@
if(!src.toggle())
usr << "<span class='notice'>It won't budge!</span>"
/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"