Skip to content

Commit

Permalink
Stabilized Orange can no longer cool you infinitely fast (tgstation#7…
Browse files Browse the repository at this point in the history
…4027)

## About The Pull Request

Closes tgstation#73923
### Mapping March
Ckey to receive rewards: N/A

## Why It's Good For The Game
## Changelog
:cl:
fix: Stabilized Orange extracts are no longer able to cool you from any
temperature instantly
/:cl:
  • Loading branch information
ZephyrTFA authored Mar 16, 2023
1 parent bc8872c commit 571a443
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions code/modules/research/xenobiology/crossbreeding/_status_effects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,20 @@
colour = "orange"

/datum/status_effect/stabilized/orange/tick()
var/body_temperature_difference = owner.get_body_temp_normal(apply_change=FALSE) - owner.bodytemperature
owner.adjust_bodytemperature(min(5, body_temperature_difference))
var/body_temp_target = owner.get_body_temp_normal(apply_change = FALSE)

var/body_temp_actual = owner.bodytemperature
var/body_temp_offset = body_temp_target - body_temp_actual
body_temp_offset = clamp(body_temp_offset, -5, 5)
owner.adjust_bodytemperature(body_temp_offset)

if(ishuman(owner))
var/mob/living/carbon/human/humi = owner
humi.adjust_coretemperature(min(5, humi.get_body_temp_normal(apply_change=FALSE) - humi.coretemperature))
var/mob/living/carbon/human/human = owner
var/core_temp_actual = human.coretemperature
var/core_temp_offset = body_temp_target - core_temp_actual
core_temp_offset = clamp(core_temp_offset, -5, 5)
human.adjust_coretemperature(core_temp_offset)

return ..()

/datum/status_effect/stabilized/purple
Expand Down

0 comments on commit 571a443

Please sign in to comment.