From b7d9fcf87aa2841ad94a1b983993e623c2284c3c Mon Sep 17 00:00:00 2001 From: hal9000PR <69320440+hal9000PR@users.noreply.github.com> Date: Wed, 16 Jun 2021 13:23:34 +0100 Subject: [PATCH] fix (#16191) --- code/modules/mob/living/carbon/human/life.dm | 6 +++--- code/modules/mob/living/carbon/human/species/_species.dm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index ed7e993512d..05fc209739e 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -300,11 +300,11 @@ else if(bodytemperature < dna.species.cold_level_1) if(status_flags & GODMODE) - return 1 + return TRUE if(stat == DEAD) - return 1 + return TRUE - if(!istype(loc, /obj/machinery/atmospherics/unary/cryo_cell)) + if(!istype(loc, /obj/machinery/atmospherics/unary/cryo_cell) && !(HAS_TRAIT(src, TRAIT_RESISTCOLD))) var/mult = dna.species.coldmod * physiology.cold_mod if(bodytemperature >= dna.species.cold_level_2 && bodytemperature <= dna.species.cold_level_1) throw_alert("temp", /obj/screen/alert/cold, 1) diff --git a/code/modules/mob/living/carbon/human/species/_species.dm b/code/modules/mob/living/carbon/human/species/_species.dm index 215f43b2491..7d1ae80a955 100644 --- a/code/modules/mob/living/carbon/human/species/_species.dm +++ b/code/modules/mob/living/carbon/human/species/_species.dm @@ -271,7 +271,7 @@ . += hungry/50 if(HAS_TRAIT(H, TRAIT_FAT)) . += (1.5 - flight) - if(H.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT) + if(H.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT && !(HAS_TRAIT(H, TRAIT_RESISTCOLD))) . += (BODYTEMP_COLD_DAMAGE_LIMIT - H.bodytemperature) / COLD_SLOWDOWN_FACTOR return .