From 24eeeb070b754b041fda1eb668e310075ea47ed5 Mon Sep 17 00:00:00 2001 From: Seth Scherer Date: Mon, 19 Apr 2021 21:16:24 -0400 Subject: [PATCH] organs (#58530) --- code/modules/surgery/organ_manipulation.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/surgery/organ_manipulation.dm b/code/modules/surgery/organ_manipulation.dm index 9ff77b05600..95c89d8ad66 100644 --- a/code/modules/surgery/organ_manipulation.dm +++ b/code/modules/surgery/organ_manipulation.dm @@ -85,6 +85,8 @@ return -1 I = tool.contents[1] if(!isorgan(I)) + if (target_zone == BODY_ZONE_PRECISE_EYES) + target_zone = check_zone(target_zone) to_chat(user, "You cannot put [I] into [target]'s [parse_zone(target_zone)]!") return -1 tool = I @@ -98,6 +100,8 @@ if(!meatslab.useable) to_chat(user, "[I] seems to have been chewed on, you can't use this!") return -1 + if (target_zone == BODY_ZONE_PRECISE_EYES) + target_zone = check_zone(target_zone) display_results(user, target, "You begin to insert [tool] into [target]'s [parse_zone(target_zone)]...", "[user] begins to insert [tool] into [target]'s [parse_zone(target_zone)].", "[user] begins to insert something into [target]'s [parse_zone(target_zone)].") @@ -105,6 +109,8 @@ else if(implement_type in implements_extract) current_type = "extract" var/list/organs = target.getorganszone(target_zone) + if (target_zone == BODY_ZONE_PRECISE_EYES) + target_zone = check_zone(target_zone) if(!organs.len) to_chat(user, "There are no removable organs in [target]'s [parse_zone(target_zone)]!") return -1 @@ -130,6 +136,8 @@ /datum/surgery_step/manipulate_organs/success(mob/living/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery, default_display_results) + if (target_zone == BODY_ZONE_PRECISE_EYES) + target_zone = check_zone(target_zone) if(current_type == "insert") if(istype(tool, /obj/item/borg/apparatus/organ_storage)) I = tool.contents[1]