From 7e0b1302ece30d740c031fce326478d4f4c7fb98 Mon Sep 17 00:00:00 2001 From: pinatacolada Date: Wed, 4 May 2016 14:31:43 +0100 Subject: [PATCH] prevents implanting fukken disks in boxes inside of people fixes #4347 --- code/modules/surgery/implant.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index 6a6a7e8b7fe..a8667638dea 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -175,6 +175,12 @@ 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/organ)) to_chat(user, "This isn't the type of surgery for organ transplants!") return 0//fail