[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
This commit is contained in:
committed by
Poojawa
parent
99487a6bbb
commit
2fbdfd1856
@@ -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)
|
||||
|
||||
@@ -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
|
||||
return uid
|
||||
|
||||
Reference in New Issue
Block a user