From f6965a2a76bfaca45edf1c3a97d725527ca8c21a Mon Sep 17 00:00:00 2001 From: warior4356 Date: Fri, 25 Sep 2020 22:01:07 -0700 Subject: [PATCH] Changes cryoxadone to check external temp --- code/modules/reagents/chemistry/reagents/medicine.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/chemistry/reagents/medicine.dm b/code/modules/reagents/chemistry/reagents/medicine.dm index 9797951f290..224621dce8d 100644 --- a/code/modules/reagents/chemistry/reagents/medicine.dm +++ b/code/modules/reagents/chemistry/reagents/medicine.dm @@ -121,7 +121,14 @@ /datum/reagent/medicine/cryoxadone/on_mob_life(mob/living/M) var/update_flags = STATUS_UPDATE_NONE - if(M.bodytemperature < TCRYO) + var/external_temp + if(istype(M.loc, /obj/machinery/atmospherics/unary/cryo_cell)) + var/obj/machinery/atmospherics/unary/cryo_cell/C = M.loc + external_temp = C.temperature_archived + else + var/turf/T = M.loc + external_temp = T.temperature + if(external_temp < TCRYO) update_flags |= M.adjustCloneLoss(-4, FALSE) update_flags |= M.adjustOxyLoss(-10, FALSE) update_flags |= M.adjustToxLoss(-3, FALSE)