From 73cc6834cf19706c1de3dedbc07cd48ec7f07b0e Mon Sep 17 00:00:00 2001 From: Jack Edge Date: Wed, 19 Apr 2017 17:10:59 +0100 Subject: [PATCH] Examining a window gives tips for construction/deconstruction :cl: coiax add: Examining a window now gives hints to the appropriate tool for the next stage of construction/deconstruction. /:cl: --- code/game/objects/structures/window.dm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index c6c2ef358bc..2d5eb8ef6dd 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -27,7 +27,23 @@ /obj/structure/window/examine(mob/user) ..() - to_chat(user, "Alt-click to rotate it clockwise.") + if(reinf) + if(anchored && state == WINDOW_SCREWED_TO_FRAME) + to_chat(user, "The window is screwed to the frame.") + else if(anchored && state == WINDOW_IN_FRAME) + to_chat(user, "The window is unscrewed but pried into the frame.") + else if(anchored && state == WINDOW_OUT_OF_FRAME) + to_chat(user, "The window is out of the frame, but could be pried in. It is screwed to the floor.") + else if(!anchored) + to_chat(user, "The window is unscrewed from the floor, and could be deconstructed by wrenching.") + else + if(anchored) + to_chat(user, "The window is screwed to the floor.") + else + to_chat(user, "The window is unscrewed from the floor, and could be deconstructed by wrenching.") + + if(!anchored) + to_chat(user, "Alt-click to rotate it clockwise.") /obj/structure/window/Initialize(mapload, direct) ..()