Now allows admin override via player panel, a small fix, and...

implantation works again. Since they'll only be accessible via an admin
specifically spawning it, except for in cases where it is configured
to be allowed, it'll be fine.

This now allows admins to incorporate loyalty implants still if they so
wish for whatever reason, but it is normally inaccessible.

Signed-off-by: Decius <deciusreln97@gmail.com>
This commit is contained in:
Decius
2014-07-14 19:02:21 -04:00
parent b37ce454df
commit 0b314561ca
4 changed files with 29 additions and 34 deletions

View File

@@ -512,9 +512,7 @@ datum/mind
H << "\blue <Font size =3><B>Your loyalty implant has been deactivated.</B></FONT>"
if("add")
H.implant_loyalty(src)
if(config.use_loyalty_implants) // The following won't occur if there are not loyalty implants.
H.implant_loyalty(H, override = TRUE)
H << "\red <Font size =3><B>You somehow have become the recepient of a loyalty transplant, and it just activated!</B></FONT>"
if(src in ticker.mode.revolutionaries)
special_role = null
@@ -539,7 +537,6 @@ datum/mind
current << "\red <FONT size = 3><B>The nanobots in the loyalty implant remove all thoughts about being a traitor to Nanotrasen. Have a nice day!</B></FONT>"
log_admin("[key_name_admin(usr)] has de-traitor'ed [current].")
else
usr << "Loyalty implants are currently disabled for your server in the configuration files."
else if (href_list["revolution"])

View File

@@ -113,7 +113,6 @@
New()
if (config.use_loyalty_implants)
src.imp = new /obj/item/weapon/implant/loyalty( src )
..()
return

View File

@@ -60,7 +60,6 @@
name = "implanter-loyalty"
/obj/item/weapon/implanter/loyalty/New()
if(config.use_loyalty_implants)
src.imp = new /obj/item/weapon/implant/loyalty( src )
..()
update()

View File

@@ -317,8 +317,8 @@
if(armor >= 2) return
/mob/living/carbon/human/proc/implant_loyalty(mob/living/carbon/human/M)
if(!config.use_loyalty_implants) return
/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)
L.imp_in = M