From 2fbdfd18560316283778c8229774c968831d3149 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Wed, 21 Mar 2018 12:58:24 -0500 Subject: [PATCH] [MIRROR] Atmos unary devices can now be analyzed (#6037) * Atmos unary devices can now be analyzed (#36485) tweak: Unary devices can now be analyzed using gas scanners. This means stuff like vents, scrubbers, cryo tubes, or heaters/freezers. fixes #36448 this means stuff like cryo, vents, scrubbers, heat exchangers, heaters/freezers, injectors, those big pressure tanks etc. can now be analyzed by gas analyzers/PDA gas scanners * Atmos unary devices can now be analyzed --- code/game/objects/items/devices/PDA/PDA.dm | 3 +++ .../machinery/components/unary_devices/unary_devices.dm | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 044336e65d..2e164e98a8 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -858,6 +858,9 @@ GLOBAL_LIST_EMPTY(PDAs) else if (istype(A, /obj/machinery/atmospherics/pipe)) var/obj/machinery/atmospherics/pipe/P = A atmosanalyzer_scan(P.parent.air, user, P) + else if (istype(A, /obj/machinery/atmospherics/components/unary)) + var/obj/machinery/atmospherics/components/unary/U = A + atmosanalyzer_scan(U.airs[1], user, U) else if (istype(A, /obj/machinery/power/rad_collector)) var/obj/machinery/power/rad_collector/RC = A if(RC.loaded_tank) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/unary_devices.dm b/code/modules/atmospherics/machinery/components/unary_devices/unary_devices.dm index fa46dd445d..129f615ffd 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/unary_devices.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/unary_devices.dm @@ -19,6 +19,12 @@ update_icon() ..(intact) +/obj/machinery/atmospherics/components/unary/attackby(obj/item/W, mob/user, params) + if(istype(W, /obj/item/device/analyzer)) + atmosanalyzer_scan(airs[1], user) + else + return ..() + /obj/machinery/atmospherics/components/unary/proc/assign_uid_vents() uid = num2text(gl_uid++) - return uid \ No newline at end of file + return uid