d966c37c6a
Fixes healing fountain construction sprite. Nexus are now destroyed properly. Borged cultists will now lose antag status properly. Round end message fixed. Feedback messages improved to be clearer, and lots of typos fixed. Smite no longer uses up faith if there is no valid target in the turf. Adds an atom/attack_god() proc. Fixes the greeting messages for prophets and followers, improves god msg. Fixes nexus being spawned on dense turf after 2min, and general sanity. Fixes attacking structures with abstract items. Adds click delay and attack animation for attacking structures. Fixes a lot more typos. Fixes defense pylon friendly fire. Makes defense pylon togglable on its god's click. Cleans up gun_turret code a little in general. Adds deconversion by loyalty implant or holy water (basically rev+cult). Gods will now die when they have no followers left. Adds the HoG gods to the traitor panel.
67 lines
2.7 KiB
Plaintext
67 lines
2.7 KiB
Plaintext
/obj/item/weapon/implant/loyalty
|
|
name = "loyalty implant"
|
|
desc = "Makes you loyal or such."
|
|
origin_tech = "materials=2;biotech=4;programming=4"
|
|
activated = 0
|
|
|
|
/obj/item/weapon/implant/loyalty/get_data()
|
|
var/dat = {"<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Nanotrasen Employee Management Implant<BR>
|
|
<b>Life:</b> Ten years.<BR>
|
|
<b>Important Notes:</b> Personnel injected with this device tend to be much more loyal to the company.<BR>
|
|
<HR>
|
|
<b>Implant Details:</b><BR>
|
|
<b>Function:</b> Contains a small pod of nanobots that manipulate the host's mental functions.<BR>
|
|
<b>Special Features:</b> Will prevent and cure most forms of brainwashing.<BR>
|
|
<b>Integrity:</b> Implant will last so long as the nanobots are inside the bloodstream."}
|
|
return dat
|
|
|
|
|
|
/obj/item/weapon/implant/loyalty/implant(mob/target)
|
|
if(..())
|
|
if((target.mind in (ticker.mode.head_revolutionaries | ticker.mode.get_gang_bosses())) || is_shadow_or_thrall(target))
|
|
target.visible_message("<span class='warning'>[target] seems to resist the implant!</span>", "<span class='warning'>You feel the corporate tendrils of Nanotrasen try to invade your mind!</span>")
|
|
removed(target, 1)
|
|
qdel(src)
|
|
return -1
|
|
if(target.mind in ticker.mode.get_gangsters())
|
|
ticker.mode.remove_gangster(target.mind)
|
|
target.visible_message("<span class='warning'>[src] was destroyed in the process!</span>", "<span class='notice'>You feel a surge of loyalty towards Nanotrasen.</span>")
|
|
removed(target, 1)
|
|
qdel(src)
|
|
return -1
|
|
if(target.mind in ticker.mode.revolutionaries)
|
|
ticker.mode.remove_revolutionary(target.mind)
|
|
if(target.mind in ticker.mode.red_deity_followers|ticker.mode.blue_deity_followers)
|
|
ticker.mode.remove_hog_follower(target.mind)
|
|
if((target.mind in ticker.mode.cult) || (target.mind in ticker.mode.blue_deity_prophets|ticker.mode.red_deity_prophets))
|
|
target << "<span class='warning'>You feel the corporate tendrils of Nanotrasen try to invade your mind!</span>"
|
|
else
|
|
target << "<span class='notice'>You feel a surge of loyalty towards Nanotrasen.</span>"
|
|
return 1
|
|
return 0
|
|
|
|
/obj/item/weapon/implant/loyalty/removed(mob/target, var/silent = 0)
|
|
if(..())
|
|
if(target.stat != DEAD && !silent)
|
|
target << "<span class='boldnotice'>You feel a sense of liberation as Nanotrasen's grip on your mind fades away.</span>"
|
|
return 1
|
|
return 0
|
|
|
|
|
|
/obj/item/weapon/implanter/loyalty
|
|
name = "implanter (loyalty)"
|
|
|
|
/obj/item/weapon/implanter/loyalty/New()
|
|
imp = new /obj/item/weapon/implant/loyalty(src)
|
|
..()
|
|
update_icon()
|
|
|
|
|
|
/obj/item/weapon/implantcase/loyalty
|
|
name = "implant case - 'Loyalty'"
|
|
desc = "A glass case containing a loyalty implant."
|
|
|
|
/obj/item/weapon/implantcase/loyalty/New()
|
|
imp = new /obj/item/weapon/implant/loyalty(src)
|
|
..() |