Added observer verb View Gases (#34574)

* Added observer verb View Gases

* Fixed atmospheric report plurality correctness

* Changed mole/s to mol.
This commit is contained in:
Buggy123
2018-01-19 10:22:41 -05:00
committed by CitadelStationBot
parent c6f227fc18
commit 57c829a2aa
2 changed files with 11 additions and 2 deletions

View File

@@ -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)

View File

@@ -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"