Combine and fix Show Air Status and Air Status in Location

This commit is contained in:
Tad Hardesty
2018-01-14 22:11:51 -08:00
parent f9e23609e0
commit 5c85f18580
2 changed files with 20 additions and 24 deletions
+2 -12
View File
@@ -231,20 +231,10 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
set name = "Air Status in Location"
if(!mob)
return
var/turf/T = mob.loc
var/turf/T = get_turf(mob)
if(!isturf(T))
return
var/datum/gas_mixture/env = T.return_air()
var/list/env_gases = env.gases
var/t = ""
for(var/id in env_gases)
if(id in GLOB.hardcoded_gases || env_gases[id][MOLES])
t+= "[env_gases[id][GAS_META][META_GAS_NAME]] : [env_gases[id][MOLES]]\n"
to_chat(usr, t)
show_air_status_to(T, usr)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Air Status In Location") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_admin_robotize(mob/M in GLOB.mob_list)