From 9cda710f6e9a883989fd5be5882bfa049e56b0d0 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Fri, 15 Jun 2012 23:17:34 +0000 Subject: [PATCH] - Added a confirmation message to the takeover verb in malfunction mode which warns the malf AI that the station will get alerted if he continues. - When an AI initiates the takeover, the delta alert level is enacted. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3836 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/gamemodes/malfunction/malfunction.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/malfunction/malfunction.dm b/code/game/gamemodes/malfunction/malfunction.dm index f8a6a92a3e2..29786685e08 100644 --- a/code/game/gamemodes/malfunction/malfunction.dm +++ b/code/game/gamemodes/malfunction/malfunction.dm @@ -147,15 +147,21 @@ set name = "System Override" set desc = "Start the victory timer" if (!istype(ticker.mode,/datum/game_mode/malfunction)) - usr << "You cannot begin takeover!." + usr << "You cannot begin a takeover in this round type!." return if (ticker.mode:malf_mode_declared) usr << "You've already begun your takeover." return if (ticker.mode:apcs < 3) - usr << "You don't have enough hacked APCs to take over the station yet." + usr << "You don't have enough hacked APCs to take over the station yet. You need to hack at least 3, however hacking more will make the takeover faster. You have hacked [ticker.mode:apcs] APCs so far." return + + if (alert(usr, "Are you sure you wish to initiate the takeover? The station hostile runtime detection software is bound to alert everyone. You have hacked [ticker.mode:apcs] APCs.", "Takeover:", "Yes", "No") != "Yes") + return + command_alert("Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.", "Anomaly Alert") + set_security_level("delta") + ticker.mode:malf_mode_declared = 1 for(var/datum/mind/AI_mind in ticker.mode:malf_ai) AI_mind.current.verbs -= /datum/game_mode/malfunction/proc/takeover