From 57c829a2aab6dca828af5cdcf703dfd70f3be984 Mon Sep 17 00:00:00 2001 From: Buggy123 Date: Fri, 19 Jan 2018 10:22:41 -0500 Subject: [PATCH] Added observer verb View Gases (#34574) * Added observer verb View Gases * Fixed atmospheric report plurality correctness * Changed mole/s to mol. --- code/modules/admin/verbs/diagnostics.dm | 2 +- code/modules/mob/dead/observer/observer.dm | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/diagnostics.dm b/code/modules/admin/verbs/diagnostics.dm index 663e21d826..5e21955800 100644 --- a/code/modules/admin/verbs/diagnostics.dm +++ b/code/modules/admin/verbs/diagnostics.dm @@ -12,7 +12,7 @@ var/gas = env_gases[id] var/moles = gas[MOLES] if (moles >= 0.00001) - lines += "[gas[GAS_META][META_GAS_NAME]]: [moles]" + lines += "[gas[GAS_META][META_GAS_NAME]]: [moles] mol" to_chat(usr, lines.Join("\n")) /client/proc/air_status(turf/target) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 98b28f6453..b1b36021fc 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -59,7 +59,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) verbs += list( /mob/dead/observer/proc/dead_tele, - /mob/dead/observer/proc/open_spawners_menu) + /mob/dead/observer/proc/open_spawners_menu, + /mob/dead/observer/proc/view_gas) if(icon_state in GLOB.ghost_forms_with_directions_list) ghostimage_default = image(src.icon,src,src.icon_state + "_nodir") @@ -373,6 +374,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp usr.forceMove(pick(L)) update_parallax_contents() +/mob/dead/observer/proc/view_gas() + set category = "Ghost" + set name = "View Gases" + set desc= "View the atmospheric conditions in a location" + + var/turf/loc = get_turf(src) + show_air_status_to(loc, usr) + /mob/dead/observer/verb/follow() set category = "Ghost" set name = "Orbit" // "Haunt"