From 0f3f961ce0fbfb8fbf6cdd1d5d3c1aa457203f81 Mon Sep 17 00:00:00 2001 From: pinatacolada Date: Wed, 4 May 2016 20:56:27 +0100 Subject: [PATCH] locatorinos --- code/modules/surgery/implant.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index a8667638dea..5eeba4ab50b 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -175,11 +175,11 @@ to_chat(user, "Central command would kill you if you implanted the disk into someone.") return 0//fail - if(istype(tool, /obj/item/weapon/storage/box)) - for(var/obj/item/I in tool.contents) - if(istype(I, /obj/item/weapon/disk/nuclear)) - to_chat(user, "Central command would kill you if you implanted the disk into someone. Even if in a box. Especially in a box.") - return 0//fail + if(istype(tool, /obj/item/weapon/storage)) + var/obj/item/weapon/disk/nuclear/datdisk = locate() in tool + if(datdisk) + to_chat(user, "Central command would kill you if you implanted the disk into someone. Even if in a box. Especially in a box.") + return 0//fail if(istype(tool,/obj/item/organ)) to_chat(user, "This isn't the type of surgery for organ transplants!")