Skip to content

Commit

Permalink
Masks now provide some insulation to your breath (in other words, sca…
Browse files Browse the repository at this point in the history
…rves and ski masks are now viable on Snaxi) (#37370)

* mask insulation

* better temp warnings
  • Loading branch information
DeityLink authored Jan 14, 2025
1 parent 8fff8cc commit 02f01c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions code/modules/mob/living/carbon/human/life/handle_breath.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
var/obj/location_as_object = loc
location_as_object.handle_internal_lifeform(src, 0)

if(wear_mask)//Insulated masks will protect you from the elements you breath somewhat
var/temp_difference = bodytemperature - breath.temperature
var/temp_change = (1 - wear_mask.heat_conductivity) * temp_difference
breath.temperature += temp_change

handle_breath(breath)

if(species)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
temperature_alert = TEMP_ALARM_HEAT_STRONG
else if(has_reagent_in_blood(FROSTOIL))
temperature_alert = TEMP_ALARM_COLD_STRONG
else if(!(get_thermal_loss(loc.return_air()) > 0.1) || bodytemperature > T0C + 50)
else if(!(get_thermal_loss(loc.return_air()) > 0.1) || bodytemperature > T0C + 50 || undergoing_hypothermia() || undergoing_hyperthermia())
switch(bodytemperature) //310.055 optimal body temp
if(370 to INFINITY)
temperature_alert = TEMP_ALARM_HEAT_STRONG
Expand Down

0 comments on commit 02f01c3

Please sign in to comment.