mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
Merge examine refactor for vorestation
This commit is contained in:
@@ -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]"
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user