Merge examine refactor for vorestation

This commit is contained in:
Aronai Sieyes
2020-04-29 17:49:54 -04:00
parent 6ebd249748
commit 874baa1d2d
34 changed files with 179 additions and 932 deletions
+9 -9
View File
@@ -68,15 +68,15 @@
pixel_y = (dir & 3) ? (dir == NORTH ? -y_offset : y_offset) : 0
/obj/structure/construction/examine(mob/user)
if(!..(user, 2))
return
switch(stage)
if(FRAME_UNFASTENED)
to_chat(user, "It's an empty frame.")
if(FRAME_FASTENED)
to_chat(user, "It's fixed to the wall.")
if(FRAME_WIRED)
to_chat(user, "It's wired.")
. = ..()
if(get_dist(user, src) <= 2)
switch(stage)
if(FRAME_UNFASTENED)
. += "It's an empty frame."
if(FRAME_FASTENED)
. += "It's fixed to the wall."
if(FRAME_WIRED)
. += "It's wired."
/obj/structure/construction/update_icon()
icon_state = "[base_icon][stage]"
+1 -1
View File
@@ -89,7 +89,7 @@
/obj/machinery/power/rtg/examine(mob/user)
. = ..()
if(Adjacent(user, src) || isobserver(user))
to_chat(user, "<span class='notice'>The status display reads: Power generation now at <b>[power_gen*0.001]</b>kW.</span>")
. += "<span class='notice'>The status display reads: Power generation now at <b>[power_gen*0.001]</b>kW.</span>"
/obj/machinery/power/rtg/attackby(obj/item/I, mob/user, params)
if(default_deconstruction_screwdriver(user, I))