Traitor synths now cannot be locked down. Locking one down notifies them that an attempt was made, and /shows/ them as locked down on the robotics console.

This commit is contained in:
Jon
2016-02-05 23:37:16 +00:00
parent 8ebdc8eb4b
commit 1d620f31e9

View File

@@ -91,15 +91,23 @@
if(!target || !istype(target)) if(!target || !istype(target))
return return
message_admins("<span class='notice'>[key_name_admin(usr)] [target.canmove ? "locked down" : "released"] [target.name]!</span>") var/istraitor = target.mind.special_role == "Traitor"
log_game("[key_name(usr)] [target.canmove ? "locked down" : "released"] [target.name]!") if (istraitor)
target.canmove = !target.canmove target.lockcharge = !target.lockcharge
if (target.lockcharge) if (target.lockcharge)
target.lockcharge = !target.lockcharge target << "Someone tried to lock you down!"
target << "Your lockdown has been lifted!"
else else
target.lockcharge = !target.lockcharge target << "Someone tried to lift your lockdown!"
else
target.canmove = !target.canmove
target.lockcharge = !target.canmove //when canmove is 1, lockcharge should be 0
if (target.lockcharge)
target << "You have been locked down!" target << "You have been locked down!"
else
target << "Your lockdown has been lifted!"
message_admins("<span class='notice'>[key_name_admin(usr)] [istraitor ? "failed (target is traitor) " : ""][target.lockcharge ? "lockdown" : "release"] on [target.name]!</span>")
log_game("[key_name(usr)] attempted to [target.lockcharge ? "lockdown" : "release"] [target.name] on the robotics console!")
// Remotely hacks the cyborg. Only antag AIs can do this and only to linked cyborgs. // Remotely hacks the cyborg. Only antag AIs can do this and only to linked cyborgs.
else if (href_list["hack"]) else if (href_list["hack"])