mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Rewrite examine() to pass a list around
This commit is contained in:
@@ -200,8 +200,9 @@
|
||||
set_frequency(frequency)
|
||||
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/examine(mob/user)
|
||||
if(..(user, 1))
|
||||
to_chat(user, "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W")
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
. += "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W"
|
||||
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/power_change()
|
||||
|
||||
@@ -15,8 +15,8 @@ GLOBAL_LIST_EMPTY(shutoff_valves)
|
||||
icon_state = "vclamp[open]"
|
||||
|
||||
/obj/machinery/atmospherics/valve/shutoff/examine(var/mob/user)
|
||||
..()
|
||||
to_chat(user, "The automatic shutoff circuit is [close_on_leaks ? "enabled" : "disabled"].")
|
||||
. = ..()
|
||||
. += "The automatic shutoff circuit is [close_on_leaks ? "enabled" : "disabled"]."
|
||||
|
||||
/obj/machinery/atmospherics/valve/shutoff/Initialize()
|
||||
. = ..()
|
||||
|
||||
@@ -178,6 +178,6 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/atmospherics/unary/freezer/examine(mob/user)
|
||||
..(user)
|
||||
. = ..()
|
||||
if(panel_open)
|
||||
to_chat(user, "The maintenance hatch is open.")
|
||||
. += "The maintenance hatch is open."
|
||||
|
||||
@@ -165,6 +165,6 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/atmospherics/unary/heater/examine(mob/user)
|
||||
..(user)
|
||||
..()
|
||||
if(panel_open)
|
||||
to_chat(user, "The maintenance hatch is open.")
|
||||
. += "The maintenance hatch is open."
|
||||
|
||||
@@ -414,12 +414,13 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/examine(mob/user)
|
||||
if(..(user, 1))
|
||||
to_chat(user, "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W")
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
. += "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W"
|
||||
else
|
||||
to_chat(user, "You are too far away to read the gauge.")
|
||||
. += "You are too far away to read the gauge."
|
||||
if(welded)
|
||||
to_chat(user, "It seems welded shut.")
|
||||
. += "It seems welded shut."
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/power_change()
|
||||
var/old_stat = stat
|
||||
|
||||
@@ -287,7 +287,8 @@
|
||||
deconstruct()
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_scrubber/examine(mob/user)
|
||||
if(..(user, 1))
|
||||
to_chat(user, "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W")
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
. += "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W"
|
||||
else
|
||||
to_chat(user, "You are too far away to read the gauge.")
|
||||
. += "You are too far away to read the gauge."
|
||||
|
||||
@@ -307,5 +307,5 @@
|
||||
deconstruct()
|
||||
|
||||
/obj/machinery/atmospherics/valve/examine(mob/user)
|
||||
..()
|
||||
to_chat(user, "It is [open ? "open" : "closed"].")
|
||||
. = ..()
|
||||
. += "It is [open ? "open" : "closed"]."
|
||||
|
||||
Reference in New Issue
Block a user