From 758f982fb4d8f0610867f0008ede9451f1f78bec Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Tue, 5 Mar 2019 16:39:49 +0100 Subject: [PATCH] Make backup implanters hate other implants This includes **ANY** implant, yes not just backup implants, if you already have **ANY** other implant the implanter will reject you. And the implant will spit on your grave. --- code/modules/resleeving/implant.dm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/code/modules/resleeving/implant.dm b/code/modules/resleeving/implant.dm index 0bfe571a8b..30561bb654 100644 --- a/code/modules/resleeving/implant.dm +++ b/code/modules/resleeving/implant.dm @@ -115,10 +115,16 @@ add_attack_logs(user,M,"Implanted backup implant") if (ishuman(M)) var/mob/living/carbon/human/H = M - var/obj/item/organ/external/affected = H.get_organ(user.zone_sel.selecting) - affected.implants += imp - imp.part = affected - BITSET(H.hud_updateflag, BACKUP_HUD) + var/obj/item/organ/external/affected = H.get_organ(/obj/item/organ/external/chest)//CHOMPEDIT Hard coding implant location + if(affected.implants) //Not just a backup implant, ANY. + imp.imp_in = null //implant is not implanted + imp.implanted = 0 //resetting implanted to 0 + imps += imp //readding the implant to the implants + M.visible_message("The implant rejects [user].") + else + affected.implants += imp + imp.part = affected + BITSET(H.hud_updateflag, BACKUP_HUD) update()