mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #904 from EmperorJon/05_Feb._Traitor_borg_lockdown_changes
Traitor synth lockdown changes
This commit is contained in:
@@ -91,15 +91,23 @@
|
||||
if(!target || !istype(target))
|
||||
return
|
||||
|
||||
message_admins("<span class='notice'>[key_name_admin(usr)] [target.canmove ? "locked down" : "released"] [target.name]!</span>")
|
||||
log_game("[key_name(usr)] [target.canmove ? "locked down" : "released"] [target.name]!")
|
||||
target.canmove = !target.canmove
|
||||
if (target.lockcharge)
|
||||
var/istraitor = traitors.is_antagonist(target.mind)
|
||||
if (istraitor)
|
||||
target.lockcharge = !target.lockcharge
|
||||
target << "Your lockdown has been lifted!"
|
||||
if (target.lockcharge)
|
||||
target << "Someone tried to lock you down!"
|
||||
else
|
||||
target << "Someone tried to lift your lockdown!"
|
||||
else
|
||||
target.lockcharge = !target.lockcharge
|
||||
target << "You have been locked down!"
|
||||
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!"
|
||||
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.
|
||||
else if (href_list["hack"])
|
||||
|
||||
4
html/changelogs/EmperorJon-PR-904.yml
Normal file
4
html/changelogs/EmperorJon-PR-904.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: EmperorJon
|
||||
delete-after: True
|
||||
changes:
|
||||
- tweak: "Traitor synths can no longer be locked down from the robotics console. Attempting to lock them down (or release the lockdown) notifies the synth of the attempt and updates the console's UI as normal."
|
||||
Reference in New Issue
Block a user