Files
Bubberstation/code/modules/admin/verbs/fix_air.dm
Gandalf c46a2a7ac9 Ports pollution from Horizon - Original PR: https://github.com/hrzntal/horizon/pull/468 (Made by Azarak) (#7453)
* AAAAAAAAAAA

* pollution scrubbbies

* fires cause smoke, right? Also NSS journey has scrubbies

* washing things removes the smell!

* what the fuck were you doing last night

* Update temporary_pollution_emission_component.dm

* space turfs shouldn't have pollution

* Fix air now fixes smoke

* Update pollution.dm

* Update pollution.dm

* Update bonfire.dm
2021-08-15 23:41:20 +01:00

25 lines
839 B
Plaintext

// Proc taken from yogstation, credit to nichlas0010 for the original
/client/proc/fix_air(turf/open/T in world)
set name = "Fix Air"
set category = "Admin.Game"
set desc = "Fixes air in specified radius."
if(!holder)
to_chat(src, "Only administrators may use this command.", confidential = TRUE)
return
if(check_rights(R_ADMIN,1))
var/range=input("Enter range:","Num",2) as num
message_admins("[key_name_admin(usr)] fixed air with range [range] in area [T.loc.name]")
log_game("[key_name_admin(usr)] fixed air with range [range] in area [T.loc.name]")
var/datum/gas_mixture/GM = new
for(var/turf/open/F in range(range,T))
if(F.blocks_air)
//skip walls
continue
GM.parse_gas_string(F.initial_gas_mix)
F.copy_air(GM)
F.update_visuals()
if(F.pollution) //SKYRAT EDIT ADDITION
qdel(F.pollution)