Ports "examine-code refactor"... part 1...

This commit is contained in:
Ghommie
2019-11-19 03:28:06 +01:00
parent d9b24b20d1
commit a52e292cc8
204 changed files with 739 additions and 756 deletions
+4 -4
View File
@@ -34,14 +34,14 @@
can_rotate = FALSE
/obj/structure/reflector/examine(mob/user)
..()
. = ..()
if(finished)
to_chat(user, "It is set to [rotation_angle] degrees, and the rotation is [can_rotate ? "unlocked" : "locked"].")
. += "It is set to [rotation_angle] degrees, and the rotation is [can_rotate ? "unlocked" : "locked"]."
if(!admin)
if(can_rotate)
to_chat(user, "<span class='notice'>Alt-click to adjust its direction.</span>")
. += "<span class='notice'>Alt-click to adjust its direction.</span>"
else
to_chat(user, "<span class='notice'>Use screwdriver to unlock the rotation.</span>")
. += "<span class='notice'>Use screwdriver to unlock the rotation.</span>"
/obj/structure/reflector/proc/setAngle(new_angle)
if(can_rotate)