Malf AIs now need at least three APCs hacked for the timer to progress.

APCs have 1/3rd the effect on malf timer as before.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@204 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-09-28 05:45:41 +00:00
parent c4228ece36
commit b8c40cfca5
2 changed files with 7 additions and 4 deletions
@@ -10,6 +10,7 @@
var/malf_mode_declared = 0
var/boom = 0
var/apcs = 0 //Adding dis to track how many APCs the AI hacks. --NeoFite
var/win = 0
/datum/game_mode/malfunction/announce()
world << "<B>The current game mode is - AI Malfunction!</B>"
@@ -79,13 +80,15 @@
/datum/game_mode/malfunction/process()
AI_win_timeleft = AI_win_timeleft - apcs //Victory timer now de-increments based on how many APCs are hacked. --NeoFite
if (apcs >= 3)
AI_win_timeleft = AI_win_timeleft - (apcs/3) //Victory timer now de-increments based on how many APCs are hacked. --NeoFite
// if(AI_win_timeleft == 1200) // Was 1790
// malf_mode_declared = 1
check_win()
/datum/game_mode/malfunction/check_win()
if (AI_win_timeleft <= 0)
if (AI_win_timeleft <= 0 && !win)
win = 1
world << "<FONT size = 3><B>The AI has won!</B></FONT>"
world << "<B>It has fully taken control of all of [station_name()]'s systems.</B>"
+2 -2
View File
@@ -54,8 +54,8 @@
var/datum/game_mode/malfunction/malf = ticker.mode
for (var/datum/mind/malfai in malf.malf_ai)
if (src.mind == malfai)
if (malf.apcs > 0)
stat(null, "Time until station control secured: [max(malf.AI_win_timeleft/malf.apcs, 0)] seconds")
if (malf.apcs >= 3)
stat(null, "Time until station control secured: [max(malf.AI_win_timeleft/(malf.apcs/3), 0)] seconds")
if(!src.stat)
stat(null, text("System integrity: [(src.health+100)/2]%"))