Expanded ghost gas analyzer (#22914)

* Please don't shoot me this time

* Added descriptor

* This one actually works, please don't shoot me

* Spacing fix

* proper documentation
This commit is contained in:
Bjamcham
2023-10-30 19:09:37 +00:00
committed by GitHub
parent faaa2fb392
commit 3e4cb4c25a
2 changed files with 23 additions and 0 deletions
+9
View File
@@ -91,3 +91,12 @@
/obj/effect/portal/attack_ghost(mob/user as mob)
if(target)
user.forceMove(get_turf(target))
/obj/machinery/atmospherics/attack_ghost(mob/dead/observer/user)
if(user.gas_analyzer)
if(istype(src, /obj/machinery/atmospherics/pipe))
var/obj/machinery/atmospherics/pipe/T = src
atmosanalyzer_scan(T.parent.air, user, T)
else if(istype(src, /obj/machinery/atmospherics/unary))
var/obj/machinery/atmospherics/unary/T = src
atmosanalyzer_scan(T.air_contents, user, T)