Files
Bubberstation/code/modules/admin/verbs/fix_air.dm
SkyratBot 4734ca7490 [MIRROR] Fixes linda heat capacity errors [MDB IGNORE] (#16445)
* Fixes linda heat capacity errors (#70071)

We make the assumption that a turf's heat capacity will never be 0. This is safe because we've got an override of /datum/gas_mixture for turfs that overrides 0 heat cap with 7000 (SPACE)
This is done to make cold actually flow through empty tiles, because we are hacks.

I forgot to include type in my gas mixture creation logic, so this was being dropped. FIXXXX

* Fixes linda heat capacity errors

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2022-09-26 13:13:24 +01:00

24 lines
857 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]")
usr.log_message("fixed air with range [range] in area [T.loc.name]", LOG_ADMIN)
for(var/turf/open/F in range(range,T))
if(F.blocks_air)
//skip walls
continue
var/datum/gas_mixture/GM = SSair.parse_gas_string(F.initial_gas_mix, /datum/gas_mixture/turf)
F.copy_air(GM)
F.update_visuals()
if(F.pollution) //SKYRAT EDIT ADDITION
qdel(F.pollution)