From fb1494f68be14e8ab18767b8e1e01ca6548cc89d Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Wed, 28 Jul 2021 10:26:23 -0400 Subject: [PATCH] Exhale into drop pods --- code/game/objects/structures/droppod.dm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/code/game/objects/structures/droppod.dm b/code/game/objects/structures/droppod.dm index 5d2edc31582..8598d632fc4 100644 --- a/code/game/objects/structures/droppod.dm +++ b/code/game/objects/structures/droppod.dm @@ -18,7 +18,11 @@ if(A) A.forceMove(src) // helo podfall(auto_open) - air = new(1000) + air = new + +/obj/structure/drop_pod/Destroy() + . = ..() + qdel_null(air) /obj/structure/drop_pod/proc/podfall(auto_open) set waitfor = FALSE // sleeping in new otherwise @@ -118,10 +122,16 @@ return ..() /obj/structure/drop_pod/return_air() - return return_air_for_internal_lifeform() + return air || ..() /obj/structure/drop_pod/return_air_for_internal_lifeform() - return air + return air || ..() + +/obj/structure/drop_pod/assume_air(datum/gas_mixture/giver) + if(air) + return air.merge(giver) + else + return ..() // This is about 0.896m^3 of atmosphere, which is enough to last for quite a while. /datum/gas_mixture/pod_air