From fd1d021b1558f79e95e6e6728ca9cf99502b1fcc Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 4 Nov 2024 14:53:46 -0500 Subject: [PATCH] (PORT) Closet/Crate Examining for Observers (#2318) ## About The Pull Request _**PORTED FROM FALLOUT 13 - I COULD NOT FIND THE EXACT PR IT WAS ADDED IN**_ Lets ghosts click on lockers and crates to see what is inside of them. ## Why It's Good For The Game It helps admins out in two ways, one, they don't have to VV to see what is inside of things, and two, they won't be asked by players to see what is inside of crates or lockers. ## Proof Of Testing It didn't runtime or have any errors when I locally tested it, screenshots of it in action can be found below.
Screenshots/Videos ![image](https://github.com/user-attachments/assets/a95bdcf0-ca23-4977-a9be-26789037062f) ![image](https://github.com/user-attachments/assets/115bcd94-fdf0-482f-b5c1-3c57df9006a3)
## Changelog :cl: qol: made it so you can examine what is inside of crates and lockers as an observer /:cl: --- .../code/game/objects/structures/crates_lockers/closets.dm | 4 ++++ tgstation.dme | 1 + 2 files changed, 5 insertions(+) create mode 100644 modular_zubbers/code/game/objects/structures/crates_lockers/closets.dm diff --git a/modular_zubbers/code/game/objects/structures/crates_lockers/closets.dm b/modular_zubbers/code/game/objects/structures/crates_lockers/closets.dm new file mode 100644 index 00000000000..37e4341b1ba --- /dev/null +++ b/modular_zubbers/code/game/objects/structures/crates_lockers/closets.dm @@ -0,0 +1,4 @@ +/obj/structure/closet/examine(mob/user) + . = ..() + if(isobserver(user)) + . += span_info("It contains: [english_list(contents)].") diff --git a/tgstation.dme b/tgstation.dme index 5265622452f..5c7d664ce4e 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -8786,6 +8786,7 @@ #include "modular_zubbers\code\game\objects\structures\trash_pile.dm" #include "modular_zubbers\code\game\objects\structures\watercloset.dm" #include "modular_zubbers\code\game\objects\structures\beds_chairs\sofa.dm" +#include "modular_zubbers\code\game\objects\structures\crates_lockers\closets.dm" #include "modular_zubbers\code\game\objects\structures\crates_lockers\closets\secure\scientist.dm" #include "modular_zubbers\code\game\objects\structures\flags\signs_flags.dm" #include "modular_zubbers\code\game\objects\structures\plaques\static_plaques.dm"