/obj/item/implant/mindshield
name = "mindshield implant"
desc = "Stops people messing with your mind."
origin_tech = "materials=2;biotech=4;programming=4"
activated = 0
/obj/item/implant/mindshield/get_data()
var/dat = {"Implant Specifications:
Name: Nanotrasen Employee Management Implant
Life: Ten years.
Important Notes: Personnel injected with this device can better resist mental compulsions.
Implant Details:
Function: Contains a small pod of nanobots that manipulate the host's mental functions.
Special Features: Will prevent and cure most forms of brainwashing.
Integrity: Implant will last so long as the nanobots are inside the bloodstream."}
return dat
/obj/item/implant/mindshield/implant(mob/target)
if(..())
if(target.mind in SSticker.mode.head_revolutionaries || is_shadow_or_thrall(target))
target.visible_message("[target] seems to resist the implant!", "You feel the corporate tendrils of Nanotrasen try to invade your mind!")
removed(target, 1)
qdel(src)
return -1
if(target.mind in SSticker.mode.revolutionaries)
SSticker.mode.remove_revolutionary(target.mind)
if(target.mind in SSticker.mode.cult)
to_chat(target, "You feel the corporate tendrils of Nanotrasen try to invade your mind!")
else
to_chat(target, "Your mind feels hardened - more resistant to brainwashing.")
return 1
return 0
/obj/item/implant/mindshield/removed(mob/target, var/silent = 0)
if(..())
if(target.stat != DEAD && !silent)
to_chat(target, "You feel a sense of liberation as Nanotrasen's grip on your mind fades away.")
return 1
return 0
/obj/item/implanter/mindshield
name = "implanter (mindshield)"
/obj/item/implanter/mindshield/New()
imp = new /obj/item/implant/mindshield(src)
..()
update_icon()
/obj/item/implantcase/mindshield
name = "implant case - 'mindshield'"
desc = "A glass case containing a mindshield implant."
/obj/item/implantcase/mindshield/New()
imp = new /obj/item/implant/mindshield(src)
..()