mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Typecheck all return_air calls (#15363)
This commit is contained in:
@@ -198,8 +198,10 @@
|
||||
if(istype(H, /obj/machinery/portable_atmospherics/hydroponics/soil/invisible))
|
||||
qdel(H)
|
||||
|
||||
var/datum/gas_mixture/environment = T.return_air()
|
||||
environment.adjust_gas(GAS_PHORON,-amount*10)
|
||||
if(istype(T))
|
||||
var/datum/gas_mixture/environment = T.return_air()
|
||||
if(environment)
|
||||
environment.adjust_gas(GAS_PHORON,-amount*10)
|
||||
|
||||
/decl/reagent/toxin/cyanide //Fast and Lethal
|
||||
name = "Cyanide"
|
||||
|
||||
@@ -401,10 +401,12 @@
|
||||
playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3)
|
||||
INVOKE_ASYNC(S, /datum/effect/effect/system/smoke_spread/.proc/start)
|
||||
|
||||
var/datum/gas_mixture/env = src.loc.return_air()
|
||||
if(env)
|
||||
if (reagents.total_volume > 750)
|
||||
env.temperature = 0
|
||||
else if (reagents.total_volume > 500)
|
||||
env.temperature -= 100
|
||||
QDEL_IN(src, 10)
|
||||
if(src.loc)
|
||||
var/datum/gas_mixture/env = src.loc.return_air()
|
||||
if(env)
|
||||
if (reagents.total_volume > 750)
|
||||
env.temperature = 0
|
||||
else if (reagents.total_volume > 500)
|
||||
env.temperature -= 100
|
||||
|
||||
QDEL_IN(src, 10)
|
||||
|
||||
Reference in New Issue
Block a user