Adds ipc loyalty chip (#1934)

By the quest of the lore team, adding an ipc version of the loyalty implant for when synths will be able to be loyalty implanted roles.
This commit is contained in:
Alberyk
2017-03-18 20:52:41 +02:00
committed by skull132
parent 31a776b373
commit 4b93a20a5e
2 changed files with 16 additions and 1 deletions
@@ -367,6 +367,17 @@ the implant may become unstable and either pre-maturely inject the subject or si
processing_objects.Add(src)
return 1
/obj/item/weapon/implant/loyalty/ipc
name = "loyalty chip"
desc = "A device that sets directives programmed for loyalty to NanoTrasen on the synthetic subject. Will not work on organics."
/obj/item/weapon/implant/loyalty/ipc/implanted(mob/M)
if (!isipc(M))
return
..()
/obj/item/weapon/implant/adrenalin
name = "adrenalin"
desc = "Removes all stuns and knockdowns."
@@ -210,7 +210,11 @@
/mob/living/carbon/human/proc/implant_loyalty(mob/living/carbon/human/M, override = FALSE) // Won't override by default.
if(!config.use_loyalty_implants && !override) return // Nuh-uh.
var/obj/item/weapon/implant/loyalty/L = new/obj/item/weapon/implant/loyalty(M)
var/obj/item/weapon/implant/loyalty/L
if(isipc(M))
L = new/obj/item/weapon/implant/loyalty/ipc(M)
else
L = new/obj/item/weapon/implant/loyalty(M)
L.imp_in = M
L.implanted = 1
var/obj/item/organ/external/affected = M.organs_by_name["head"]