Merge pull request #34457 from AutomaticFrenzy/patch/air-status
Combine and fix Show Air Status and Air Status in Location
This commit is contained in:
committed by
CitadelStationBot
parent
d2d1a063a7
commit
9dda16954b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user