From 69ee79c5d7f3f755efc45a4078de8b40bc12e7a1 Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Wed, 3 May 2023 03:34:07 +0000 Subject: [PATCH] Health Analyzer now lists embeds (#75113) ## About The Pull Request Health analyzer now shows off any embeds in the limbs, right under their damage. ![image](https://user-images.githubusercontent.com/53777086/235578742-9ebf71ff-5c8f-44d7-96b0-5784e18ae07b.png) ## Why It's Good For The Game Currently the only way to tell there's an embed in a bodypart is by examining them, and Doctors have their health analyzer to examine FOR them. Knowing embeds is an important part of treatment, so I think it's justified to have the analyzer show them this info. ## Changelog :cl: qol: Health Analyzers now show embeds in bodyparts on examine. /:cl: --- code/game/objects/items/devices/scanners/health_analyzer.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/items/devices/scanners/health_analyzer.dm b/code/game/objects/items/devices/scanners/health_analyzer.dm index 6d480027eb1..6fa12aaf244 100644 --- a/code/game/objects/items/devices/scanners/health_analyzer.dm +++ b/code/game/objects/items/devices/scanners/health_analyzer.dm @@ -253,6 +253,9 @@ dmgreport += "[(limb.burn_dam > 0) ? "[CEILING(limb.burn_dam,1)]" : "0"]" dmgreport += "" render_list += dmgreport // tables do not need extra linebreak + for(var/obj/item/bodypart/limb as anything in carbontarget.bodyparts) + for(var/obj/item/embed as anything in limb.embedded_objects) + render_list += "Embedded object: [embed] located in \the [limb.plaintext_zone]\n" if(ishuman(target)) var/mob/living/carbon/human/humantarget = target