From d8e8e751deba74cdd81a5941e1e25ac98d855d24 Mon Sep 17 00:00:00 2001 From: Aurorablade Date: Wed, 9 Mar 2016 21:35:38 -0500 Subject: [PATCH] made it so you can end cavity surgery without having to check or implant something --- code/modules/surgery/implant.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index 81aa947ac7b..25197913c0f 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -155,7 +155,9 @@ if(!istype(I, /obj/item/organ)) IC = I break - if(tool) + if(istype(tool,/obj/item/weapon/cautery)) + user << "you prepare to close the cavity wall." + else if(tool) user.visible_message("[user] starts putting \the [tool] inside [target]'s [get_cavity(affected)] cavity.", \ "You start putting \the [tool] inside [target]'s [get_cavity(affected)] cavity." ) else if(IC) @@ -181,8 +183,9 @@ user << "[tool] is stuck to your hand, you can't put it in [target]!" return 0 - - if(tool) + if(istype(tool,/obj/item/weapon/cautery)) + return 1//god this is ugly.... + else if(tool) if(IC) user << "There seems to be something in there already!" return 1