mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
[MIRROR] Stabilized Orange can no longer cool you infinitely fast [MDB IGNORE] (#19920)
* Stabilized Orange can no longer cool you infinitely fast (#74027) ## About The Pull Request Closes https://github.com/tgstation/tgstation/issues/73923 ### Mapping March Ckey to receive rewards: N/A ## Why It's Good For The Game ## Changelog 🆑 fix: Stabilized Orange extracts are no longer able to cool you from any temperature instantly /🆑 * Stabilized Orange can no longer cool you infinitely fast --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user