Merge pull request #7123 from GunHog/AI_Loves_Her_Borgies

Adds Cyborg data to AI's status screen
This commit is contained in:
Swag McYolosteinen
2015-01-21 15:46:18 +01:00
2 changed files with 13 additions and 0 deletions
+8
View File
@@ -224,6 +224,14 @@ var/list/ai_list = list()
if(!stat)
stat(null, text("System integrity: [(health+100)/2]%"))
stat(null, "Station Time: [worldtime2text()]")
stat(null, text("Connected cyborgs: [connected_robots.len]"))
var/area/borg_area
for(var/mob/living/silicon/robot/R in connected_robots)
borg_area = get_area(R)
//Name, Health, Battery, Module, Area, and Status! Everything an AI wants to know about its borgies!
stat(null, text("[R.name] | S.Integrity: [R.health]% | Cell: [R.cell ? "[R.cell.charge]/[R.cell.maxcharge]" : "Empty"] | \
Module: [R.designation] | Loc: [borg_area.name] | Status: [R.stat ? "Offline" : "Normal"]"))
else
stat(null, text("Systems nonfunctional"))
@@ -129,6 +129,8 @@
ghostize()
ERROR("A borg has been destroyed, but its MMI lacked a brainmob, so the mind could not be transferred. Player: [ckey].")
mmi = null
if(connected_ai)
connected_ai.connected_robots -= src
..()
@@ -309,6 +311,7 @@
else
stat(null, text("No Cell Inserted!"))
stat(null, "Station Time: [worldtime2text()]")
if(module)
internal = locate(/obj/item/weapon/tank/jetpack) in module.modules
if(internal)
@@ -316,6 +319,8 @@
stat("Tank Pressure", internal.air_contents.return_pressure())
for (var/datum/robot_energy_storage/st in module.storages)
stat("[st.name]: [st.energy]/[st.max_energy]")
if(connected_ai)
stat(null, text("Master AI: [connected_ai.name]"))
/mob/living/silicon/robot/restrained()
return 0