From 4e27e65905347910b2cc8b1e81decfb5c6f1cba2 Mon Sep 17 00:00:00 2001
From: nikothedude <59709059+nikothedude@users.noreply.github.com>
Date: Sun, 19 Jan 2025 11:25:26 -0500
Subject: [PATCH] Re-adds death degradation health anaylzer info (#2960)
## About The Pull Request
Title.
closes #2483
## Why It's Good For The Game
bugs bad
## Proof Of Testing
Screenshots/Videos

## Changelog
:cl:
fix: Death degradation now has info for health analyzers
/:cl:
---
code/game/objects/items/devices/scanners/health_analyzer.dm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/code/game/objects/items/devices/scanners/health_analyzer.dm b/code/game/objects/items/devices/scanners/health_analyzer.dm
index 649ca17147b..1344abde99c 100644
--- a/code/game/objects/items/devices/scanners/health_analyzer.dm
+++ b/code/game/objects/items/devices/scanners/health_analyzer.dm
@@ -189,7 +189,6 @@
if (!target.get_organ_slot(ORGAN_SLOT_BRAIN)) // kept exclusively for soul purposes
render_list += "Subject lacks a brain.
"
- var/death_consequences_status_text // SKYRAT EDIT ADDITION: Death consequences quirk
if(iscarbon(target))
var/mob/living/carbon/carbontarget = target
if(LAZYLEN(carbontarget.quirks))
@@ -408,8 +407,9 @@
// SKYRAT EDIT ADDITION - Mutant stuff and DEATH CONSEQUENCES
if(target.GetComponent(/datum/component/mutant_infection))
render_list += span_userdanger("UNKNOWN PROTO-VIRAL INFECTION DETECTED. ISOLATE IMMEDIATELY.")
- if(death_consequences_status_text)
- render_list += death_consequences_status_text
+ var/datum/brain_trauma/severe/death_consequences/consequences = locate(/datum/brain_trauma/severe/death_consequences) in carbontarget?.get_traumas()
+ if(consequences)
+ render_list += consequences.get_health_analyzer_link_text(user)
// SKYRAT EDIT END
//BUBBERSTATION EDIT ADDITION - CHANGELING ZOMBIE STUFF