From 52ac0fdf31cf85ed4f5bbd45bbed776d71a79148 Mon Sep 17 00:00:00 2001 From: Kilakk Date: Tue, 23 Jul 2013 19:11:30 -0400 Subject: [PATCH] Added crew manfiest verb for ghosts. Made the silicon crew manfiest monochrome, because why not? --- code/modules/mob/dead/observer/observer.dm | 10 ++++++++++ code/modules/mob/living/silicon/silicon.dm | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 4b4dac419d9..e2789e446ab 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -286,3 +286,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(host) host.ckey = src.ckey host << "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent." + +/mob/dead/observer/verb/view_manfiest() + set name = "View Crew Manifest" + set category = "Ghost" + + var/dat + dat += "

Crew Manifest

" + dat += data_core.get_manifest() + + src << browse(dat, "window=manifest;size=370x420;can_close=1") diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index 1f4b0ec4fe0..bfa45124985 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -145,8 +145,8 @@ if (bot.connected_ai == ai) return 1 return 0 - - + + // this function shows the health of the pAI in the Status panel /mob/living/silicon/proc/show_system_integrity() if(!src.stat) @@ -154,25 +154,25 @@ else stat(null, text("Systems nonfunctional")) - + // This is a pure virtual function, it should be overwritten by all subclasses /mob/living/silicon/proc/show_malf_ai() return 0 - + // this function displays the station time in the status panel /mob/living/silicon/proc/show_station_time() stat(null, "Station Time: [worldtime2text()]") - - + + // this function displays the shuttles ETA in the status panel if the shuttle has been called /mob/living/silicon/proc/show_emergency_shuttle_eta() 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)]") - - + + // This adds the basic clock, shuttle recall timer, and malf_ai info to all silicon lifeforms /mob/living/silicon/Stat() ..() @@ -182,13 +182,13 @@ show_emergency_shuttle_eta() show_system_integrity() show_malf_ai() - + // this function displays the stations manifest in a separate window /mob/living/silicon/proc/show_station_manifest() var/dat dat += "

Crew Manifest

" if(data_core) - dat += data_core.get_manifest(0) // make it monochrome + dat += data_core.get_manifest(1) // make it monochrome dat += "
" src << browse(dat, "window=airoster") onclose(src, "airoster") \ No newline at end of file