From 29451ee9ae01e615d00e8dc847e23dd10195287d Mon Sep 17 00:00:00 2001 From: DrPainis <79603707+DrPainis@users.noreply.github.com> Date: Sat, 3 Apr 2021 18:18:43 -0400 Subject: [PATCH] organic repair surgery can be done on a cyborg torso (#14435) * repair surgery can be done on a cyborg torso because no * uuuuhhhh Silicons asked me to do this * no organic repair surgery on robots --- code/modules/surgery/healing.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/healing.dm b/code/modules/surgery/healing.dm index dd655a0ea5..c0b537b216 100644 --- a/code/modules/surgery/healing.dm +++ b/code/modules/surgery/healing.dm @@ -8,7 +8,7 @@ target_mobtypes = list(/mob/living/carbon/human, /mob/living/carbon/monkey) possible_locs = list(BODY_ZONE_CHEST) - requires_bodypart_type = BODYPART_ORGANIC + requires_bodypart_type = NONE replaced_by = /datum/surgery ignore_clothes = TRUE var/healing_step_type @@ -21,6 +21,12 @@ healing_step_type, //hehe cheeky /datum/surgery_step/close) +/datum/surgery/healing/can_start(mob/user, mob/living/carbon/target, obj/item/tool) + for(var/obj/item/bodypart/B in target.bodyparts) + if(B.is_organic_limb(TRUE)) + return ..() + + /datum/surgery_step/heal name = "repair body" implements = list(TOOL_HEMOSTAT = 100, TOOL_SCREWDRIVER = 65, /obj/item/pen = 55)