AIs can now see their 'health' on the status tab, since they lack a HUD.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@160 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-09-23 23:18:59 +00:00
parent 74d5c6ea9e
commit 83b68e04d8
2 changed files with 19 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
config_tag = "malfunction"
var/list/datum/mind/malf_ai = list()
var/const/waittime_l = 600
var/const/waittime_h = 1800
var/const/waittime_h = 1800 // started at 1800
var/AI_win_timeleft = 1800 //started at 1800, in case I change this for testing round end.
var/intercept_hacked = 0

View File

@@ -48,6 +48,24 @@
src.real_name = newname
src.name = newname
/mob/living/silicon/ai/Stat()
..()
statpanel("Status")
if (src.client.statpanel == "Status")
if(emergency_shuttle.online && emergency_shuttle.location < 2)
var/timeleft = emergency_shuttle.timeleft()
if (timeleft)
stat(null, "ETA-[(timeleft / 60) % 60]:[add_zero(num2text(timeleft % 60), 2)]")
if(ticker.mode.name == "AI malfunction")
var/datum/game_mode/malfunction/malf = ticker.mode
stat(null, "Time until station control secured: [max(malf.AI_win_timeleft, 0)] seconds")
if(!src.stat)
stat(null, text("System integrity: [(src.health+100)/2]%"))
else
stat(null, text("Systems nonfunctional"))
/mob/living/silicon/ai/proc/ai_alerts()
set category = "AI Commands"
set name = "Show Alerts"