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
@@ -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"]