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