Files
Aurora.3/code/modules/admin/verbs/clear_toxins.dm
T
BatrachophrenoandGitHub 790aeafbdf Storyteller admin/mod/fun verb smorgasbord (#20831)
As title: grants STs a small selection of admin/mod/fun verbs without
needing them to have an admin_rank configured on the back end.

I've been extra permissive here on the assumption that Those That Be
will veto anything they don't like. The granted verbs:
	/client/proc/toggle_view_range,
	/client/proc/jumptozlevel,
	/client/proc/jumptoshuttle,
	/client/proc/jumptoship,
	/client/proc/jumptosector,
	/client/proc/Getmob,
	/client/proc/Jump,
	/client/proc/jumptomob,
	/client/proc/jumptoturf,
	/client/proc/check_ai_laws,
	/client/proc/manage_silicon_laws,
	/client/proc/odyssey_panel,
	/client/proc/damage_menu,
	/client/proc/change_human_appearance_admin,
	/client/proc/change_security_level,
	/client/proc/cmd_dev_bst,
	/datum/admins/proc/create_admin_fax,
	/client/proc/check_fax_history,
	/client/proc/clear_toxins,
	/datum/admins/proc/call_supply_drop,
	/datum/admins/proc/call_drop_pod,
	/client/proc/event_manager_panel,
	/client/proc/toggle_random_events
	
This PR is full of _gross code_ but it _does_ work.
2025-08-06 12:43:42 +00:00

30 lines
915 B
Plaintext

/client/proc/clear_toxins()
set category = "Special Verbs"
set name = "Clear Toxin/Fire in Zone"
set desc = "Remove fires from your current zone and reset the atmosphere to human-perfect gas mix, pressure, and temp."
if (!check_rights(R_ADMIN) && !isstoryteller(usr))
return
if(!usr.loc) return
var/datum/gas_mixture/environment = usr.loc.return_air()
environment.gas[GAS_PHORON] = 0
environment.gas[GAS_NITROGEN] = 82.1472
environment.gas[GAS_OXYGEN] = 21.8366
environment.gas[GAS_CO2] = 0
environment.gas[GAS_N2O] = 0
environment.gas[GAS_HYDROGEN] = 0
environment.temperature = 293.15
environment.update_values()
var/turf/simulated/location = get_turf(usr)
if (istype(location, /turf/space))
return
if (location.zone)
for (var/turf/T in location.zone.contents)
for (var/obj/fire/F in T.contents)
qdel(F)
log_and_message_admins("cleared air and fire in area [get_area(usr)].")