From b3b19a2e89fe8de56ed8a49bbbd27947cf47f397 Mon Sep 17 00:00:00 2001 From: "VivianFoxfoot@gmail.com" Date: Sun, 11 Dec 2011 04:41:42 +0000 Subject: [PATCH] TG update: Shows the job a player was assigned and the job currently on their ID (if they have one) on the admin player panel. (Done for Hawk_v3) Also, first commit! Yayyyyyy! git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2658 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/admin.dm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index a92253cfb62..37f0d9a34d9 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1844,7 +1844,7 @@ if (!usr.client.holder) return var/dat = "Player Menu" - dat += "" + dat += "
NameReal NameKeyOptionsInfoPMTraitor?Karma
" //add to this if wanting to add back in IP checking //add if you want to know their ip to the lists below var/list/mobs = sortmobs() @@ -1862,8 +1862,8 @@ if(!show_karma) for(var/mob/M in mobs) if(M.ckey) - dat += "" - if(istype(M, /mob/living/silicon/ai)) + dat += "" // Adds current name + if(istype(M, /mob/living/silicon/ai)) // Adds current 'Real Name' dat += "" if(istype(M, /mob/living/silicon/robot)) dat += "" @@ -1879,6 +1879,20 @@ dat += "" if(istype(M, /mob/living/carbon/alien)) dat += "" + + if(M.mind.assigned_role) // Adds a column to Player Panel that shows their current job. + var/mob/living/carbon/human/H = M + if (H.wear_id) + var/obj/item/weapon/card/id/id = H.wear_id + if(M.mind.assigned_role == id.assignment) // Polymorph + dat += "" + else + dat += "" + else + dat += "" + dat += {"
NameReal NameAssigned JobKeyOptionsInfoPMTraitor?Karma
IP:(IP: [M.lastKnownIP])
[M.name]
[M.name]AICyborgMonkeyAlien[M.mind.assigned_role][M.mind.assigned_role] ([id.assignment])" + else + dat += "[M.mind.assigned_role] (No ID)No Assigned Role[M.client?"[M.client]":"No client"] X [player_has_info(M.ckey) ? "Info" : "N/A"]