From d67f17037d8c48036a75f7a1443f2bd5c0b3ab39 Mon Sep 17 00:00:00 2001 From: Dani Glore Date: Sun, 25 Feb 2024 16:14:59 -0500 Subject: [PATCH] [NON-MODULAR] Disable CPR For Synth Heatsink (#870) * Enable CPR for synths * Cleaning up extra conditional * Swap inversion operator for isnull Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> * Add conditional for checking synth lungs, undo earlier changes * Change chat message to balloon alert * Change Nova edit comment * Relocate heatsink conditional to more sensible line * Update code/modules/mob/living/carbon/human/human.dm --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> --- code/modules/mob/living/carbon/human/human.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index b0fcf3d32b9..bc07f083550 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -514,6 +514,11 @@ if(isnull(human_lungs)) balloon_alert(src, "you don't have lungs!") return FALSE + // NOVA EDIT ADDITION - Disable CPR for synth heatsink + if(istype(human_lungs, /obj/item/organ/internal/lungs/synth)) + balloon_alert(src, "you don't have lungs!") + return FALSE + // NOVA EDIT ADDITION END if(human_lungs.organ_flags & ORGAN_FAILING) balloon_alert(src, "your lungs are too damaged!") return FALSE