mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Added a "Show Crew Manifest" command to the AI. This command allows the AI to, at any time, pull up the crew roster with names and ranks. Can be a bit useful.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@697 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -98,6 +98,18 @@
|
||||
src.viewalerts = 1
|
||||
src << browse(dat, "window=aialerts&can_close=0")
|
||||
|
||||
/mob/living/silicon/ai/proc/ai_roster()
|
||||
set category = "AI Commands"
|
||||
set name = "Show Crew Manifest"
|
||||
|
||||
var/dat = "<head><title>Crew Roster</title></head><body><b>Crew Roster:</b><br><br>"
|
||||
|
||||
for (var/datum/data/record/t in data_core.general)
|
||||
dat += "[t.fields["name"]] - [t.fields["rank"]]<br>"
|
||||
|
||||
src << browse(dat, "window=airoster")
|
||||
onclose(src, "airoster")
|
||||
|
||||
/mob/living/silicon/ai/proc/ai_cancel_call()
|
||||
set category = "AI Commands"
|
||||
if(usr.stat == 2)
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
O.verbs += /mob/living/silicon/ai/proc/lockdown
|
||||
O.verbs += /mob/living/silicon/ai/proc/disablelockdown
|
||||
O.verbs += /mob/living/silicon/ai/proc/ai_statuschange
|
||||
O.verbs += /mob/living/silicon/ai/proc/ai_roster
|
||||
|
||||
// O.verbs += /mob/living/silicon/ai/proc/ai_cancel_call
|
||||
O.job = "AI"
|
||||
|
||||
Reference in New Issue
Block a user