mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
@@ -68,9 +68,16 @@
|
|||||||
)
|
)
|
||||||
radio_connection.post_signal(src, signal)
|
radio_connection.post_signal(src, signal)
|
||||||
|
|
||||||
/obj/machinery/meter/proc/status()
|
/obj/machinery/meter/examine()
|
||||||
var/t = ""
|
var/t = "A gas flow meter. "
|
||||||
if (src.target)
|
|
||||||
|
if(get_dist(usr, src) > 3 && !(istype(usr, /mob/living/silicon/ai) || istype(usr, /mob/dead)))
|
||||||
|
t += "\blue <B>You are too far away to read it.</B>"
|
||||||
|
|
||||||
|
else if(stat & (NOPOWER|BROKEN))
|
||||||
|
t += "\red <B>The display is off.</B>"
|
||||||
|
|
||||||
|
else if(src.target)
|
||||||
var/datum/gas_mixture/environment = target.return_air()
|
var/datum/gas_mixture/environment = target.return_air()
|
||||||
if(environment)
|
if(environment)
|
||||||
t += "The pressure gauge reads [round(environment.return_pressure(), 0.01)] kPa; [round(environment.temperature,0.01)]°K ([round(environment.temperature-T0C,0.01)]°C)"
|
t += "The pressure gauge reads [round(environment.return_pressure(), 0.01)] kPa; [round(environment.temperature,0.01)]°K ([round(environment.temperature-T0C,0.01)]°C)"
|
||||||
@@ -78,31 +85,16 @@
|
|||||||
t += "The sensor error light is blinking."
|
t += "The sensor error light is blinking."
|
||||||
else
|
else
|
||||||
t += "The connect error light is blinking."
|
t += "The connect error light is blinking."
|
||||||
return t
|
|
||||||
|
|
||||||
/obj/machinery/meter/examine()
|
|
||||||
set src in view(3)
|
|
||||||
|
|
||||||
var/t = "A gas flow meter. "
|
|
||||||
t += status()
|
|
||||||
usr << t
|
usr << t
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/meter/Click()
|
/obj/machinery/meter/Click()
|
||||||
|
|
||||||
if(stat & (NOPOWER|BROKEN))
|
if(istype(usr, /mob/living/silicon/ai)) // ghosts can call ..() for examine
|
||||||
|
examine()
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
var/t = null
|
return ..()
|
||||||
if (get_dist(usr, src) <= 3 || istype(usr, /mob/living/silicon/ai) || istype(usr, /mob/dead))
|
|
||||||
t += status()
|
|
||||||
else
|
|
||||||
usr << "\blue <B>You are too far away.</B>"
|
|
||||||
return 1
|
|
||||||
|
|
||||||
usr << t
|
|
||||||
return 1
|
|
||||||
|
|
||||||
/obj/machinery/meter/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
|
/obj/machinery/meter/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
|
||||||
if (!istype(W, /obj/item/weapon/wrench))
|
if (!istype(W, /obj/item/weapon/wrench))
|
||||||
|
|||||||
Reference in New Issue
Block a user