From f94e2b24eb3d7272a5bf8e1beabd276247e5bbc2 Mon Sep 17 00:00:00 2001 From: Herigony <40726633+Herigony@users.noreply.github.com> Date: Sat, 22 Apr 2023 02:47:58 -0500 Subject: [PATCH] Fix organs showing up as broken at low damages (#3114) # About the pull request Fixes low organ damage being shown as broken. Previously, organ damage below 10 showed up as broken, when it should be bruised. Changes tested (see pictures). Fixes #3113 # Explain why it's good for the game Organs showing as broken below 10 damage is confusing # Testing Photographs and Procedure
Screenshots & Videos Previous behavior: ![health scan bad](https://user-images.githubusercontent.com/40726633/233414486-72e2f2bf-4d6a-41c0-929f-e30d1b998bb9.png) Fixed behavior: ![health scan correct](https://user-images.githubusercontent.com/40726633/233414698-277ae21e-2bd4-445a-8295-396e3314d947.png) Still shows as broken above 30 damage: ![health scan broken correct](https://user-images.githubusercontent.com/40726633/233414800-58dd4839-612c-4fa1-9d76-4610a815f339.png)
# Changelog :cl: fix: low organ damage will now show as bruised instead of broken in health scan /:cl: --- code/modules/mob/living/living_healthscan.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/living_healthscan.dm b/code/modules/mob/living/living_healthscan.dm index 52f499ec4a65..01a2040f28f4 100644 --- a/code/modules/mob/living/living_healthscan.dm +++ b/code/modules/mob/living/living_healthscan.dm @@ -264,7 +264,7 @@ GLOBAL_LIST_INIT(known_implants, subtypesof(/obj/item/implant)) var/current_organ = list( "name" = organ.name, "damage" = organ.damage, - "status" = organ.organ_status == ORGAN_BRUISED ? "Bruised" : "Broken", + "status" = organ.organ_status == ORGAN_BROKEN ? "Broken" : "Bruised", "robotic" = organ.robotic ) damaged_organs += list(current_organ)