mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 19:49:39 +01:00
* demos (ported from yogstation) rustg update + write with no format use external hook for logging use proper log vars fix + clarifying comment don't start the log release build of rust-g fix something caught by the lint Update code/__DEFINES/subsystems.dm Co-Authored-By: Jordan Brown <Cyberboss@users.noreply.github.com> Update code/controllers/subsystem/demo.dm Co-Authored-By: JJRcop <jrubcop@gmail.com> Update code/controllers/subsystem/demo.dm Co-Authored-By: JJRcop <jrubcop@gmail.com> moves hooks out of a dedicated file len = 0 to Cut(), remove semicolons untyped loop * updated rust_g * 513 updates
22 lines
781 B
Plaintext
22 lines
781 B
Plaintext
// Proc taken from yogstation, credit to nichlas0010 for the original
|
|
/client/proc/fix_air(var/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()
|