mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-24 04:26:38 +01:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user