From e7e96ca3913a8bbe4f3e0fa4d33d77a830b9ac57 Mon Sep 17 00:00:00 2001
From: Vi3trice <80771500+Vi3trice@users.noreply.github.com>
Date: Sun, 2 Oct 2022 23:14:19 -0400
Subject: [PATCH] Improve airlock and windoor assembly examine cases (#19137)
* Let's give some hints
* Update door_assembly.dm
---
code/game/objects/structures/door_assembly.dm | 2 ++
code/game/objects/structures/windoor_assembly.dm | 15 +++++++++++++++
2 files changed, 17 insertions(+)
diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm
index b7213ccc599..0cbca570b34 100644
--- a/code/game/objects/structures/door_assembly.dm
+++ b/code/game/objects/structures/door_assembly.dm
@@ -45,6 +45,8 @@
. += "The maintenance panel is wired, but the circuit slot is empty."
if(AIRLOCK_ASSEMBLY_NEEDS_SCREWDRIVER)
. += "The circuit is connected loosely to its slot, but the maintenance panel is unscrewed and open."
+ if(glass)
+ . += "The assembly has its electrochromic windows [polarized_glass ? "enabled" : "disabled"] and can be configured."
if(!mineral && !glass && !noglass)
. += "There is a small paper placard on the assembly[doorname]. There are empty slots for glass windows and mineral covers."
else if(!mineral && glass && !noglass)
diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm
index 437fa4d48df..ec6bc72e8f8 100644
--- a/code/game/objects/structures/windoor_assembly.dm
+++ b/code/game/objects/structures/windoor_assembly.dm
@@ -32,6 +32,21 @@
/obj/structure/windoor_assembly/examine(mob/user)
. = ..()
+ switch(state)
+ if(EMPTY_ASSEMBLY)
+ if(anchored)
+ . += "The anchoring bolts are wrenched in place, but the maintenance panel lacks wiring."
+ else
+ . += "The assembly is welded together, but the anchoring bolts are unwrenched."
+ if(!secure)
+ . += "The frame has empty slots for plasteel reinforcements."
+ if(WIRED_ASSEMBLY)
+ if(electronics)
+ . += "The circuit is connected to its slot, but the windoor is not lifted into the frame."
+ . += "The assembly has its electrochromic panel [polarized_glass ? "enabled" : "disabled"] and can be configured."
+ else
+ . += "The maintenance panel is wired, but the circuit slot is empty."
+
. += "Alt-click to rotate it clockwise."
/obj/structure/windoor_assembly/Initialize(mapload, set_dir)