Examine Code Refactor

This commit is contained in:
Dip
2020-10-06 23:36:21 -03:00
parent c433514622
commit aa7d47a23b
334 changed files with 1337 additions and 1365 deletions
+4 -4
View File
@@ -35,14 +35,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)