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.
This commit is contained in:
Sharkmare
2019-03-05 16:39:49 +01:00
committed by GitHub
parent d5d3ed8cf9
commit 758f982fb4
+10 -4
View File
@@ -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("<span class='notice'>The implant rejects [user].</span>")
else
affected.implants += imp
imp.part = affected
BITSET(H.hud_updateflag, BACKUP_HUD)
update()