mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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>"
|
||||
|
||||
|
||||
@@ -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]%"))
|
||||
|
||||
Reference in New Issue
Block a user