mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 13:32:32 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user