diff --git a/baystation12.dme b/baystation12.dme index 1224b024332..f8af77ffab6 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -952,6 +952,7 @@ #include "code\modules\mob\new_player\preferences.dm" #include "code\modules\mob\new_player\preferences_setup.dm" #include "code\modules\mob\new_player\savefile.dm" +#include "code\modules\mob\new_player\skill.dm" #include "code\modules\mob\new_player\sprite_accessories.dm" #include "code\modules\mob\organ\organ.dm" #include "code\modules\mob\organ\organ_external.dm" diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index aa11f4bd8bd..984faa999f2 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1866,14 +1866,220 @@ /obj/admins/proc/player() if (!usr.client.holder) return - var/dat = "
| Name | Real Name | Assigned Job | Key | Options | Info | PM | Traitor? | Karma | IP: | to this if wanting to add back in IP checking - //add(IP: [M.lastKnownIP]) | if you want to know their ip to the lists below + var/dat = "
|---|
|
+ Player panel + Hover over a line to see more information + + |
+
| + Search: + | +
| [M.name] | " // Adds current name - if(istype(M, /mob/living/silicon/ai)) // Adds current 'Real Name' - dat += "AI | " - if(istype(M, /mob/living/silicon/robot)) - dat += "Cyborg | " - if(istype(M, /mob/living/carbon/human)) - dat += "[M.real_name] | " - if(istype(M, /mob/living/silicon/pai)) - dat += "pAI | " - if(istype(M, /mob/new_player)) - dat += "New Player | " - if(istype(M, /mob/dead/observer)) - dat += "Ghost | " - if(istype(M, /mob/living/carbon/monkey)) - dat += "Monkey | " - if(istype(M, /mob/living/carbon/alien)) - dat += "Alien | " - if(M.mind && M.mind.assigned_role && istype(M, /mob/living/carbon/human)) // Adds a column to Player Panel that shows their current job. - var/mob/living/carbon/human/H = M + for(var/mob/M in mobs) + if(M.ckey) + var/color = "#e6e6e6" + if(i%2 == 0) + color = "#f2f2f2" + var/is_antagonist = is_special_character(M) - if (H.wear_id) - var/obj/item/weapon/card/id/id + var/karma = "DC" - if(istype(H.wear_id, /obj/item/device/pda)) - var/obj/item/device/pda/PDA = H.wear_id - if(!isnull(PDA.id)) // The PDA may contain no ID - id = PDA.id // The ID is contained inside the PDA - - else - id = H.wear_id // The ID was on the ID slot - - if(!id) // Happens when there's no ID in the PDA located on the wear_id slot - dat += "[M.mind.assigned_role] (No ID) | " - - else if(isnull(id.assignment)) // Preventing runtime errors blocking the player panel - usr << "ERROR: Inform the coders that an [id.name] was checked for its assignment variable, and it was null." - dat += "ERROR | " - - else - if(M.mind.assigned_role == id.assignment) // Polymorph - dat += "[M.mind.assigned_role] | " - - else - dat += "[M.mind.assigned_role] ([id.assignment])" - - else - dat += " | [M.mind.assigned_role] (No ID) | " - - else - dat += "No Assigned Role | " - - dat += {"[M.client?"[M.client]":"No client"] | -X | -[player_has_info(M.ckey) ? "Info" : "N/A"] | -PM | - "} - switch(is_special_character(M)) - if(0) - dat += {"Traitor? | "} - if(1) - dat += {"Traitor? | "} - if(2) - dat += {"Traitor? | "} - if (config.sql_enabled) - dat += "ERROR | disabled | " - - else - - for(var/mob/M in mobs) - if(M.ckey) + if(show_karma) var/DBQuery/query = dbcon.NewQuery("SELECT karma FROM karmatotals WHERE byondkey='[M.key]'") query.Execute() - var/currentkarma while(query.NextRow()) - currentkarma = query.item[1] + karma = query.item[1] - dat += "
| [M.name] | " - if(isAI(M)) - dat += "AI | " - if(isrobot(M)) - dat += "Cyborg | " - if(ishuman(M)) - dat += "[M.real_name] | " - if(istype(M, /mob/living/silicon/pai)) - dat += "pAI | " - if(istype(M, /mob/new_player)) - dat += "New Player | " - if(isobserver(M)) - dat += "Ghost | " - if(ismonkey(M)) - dat += "Monkey | " - if(isalien(M)) - dat += "Alien | " - dat += {"[(M.client ? "[M.client]" : "No client")] | -X | -[player_has_info(M.ckey) ? "Info" : "N/A"] | -PM | - "} - switch(is_special_character(M)) - if(0) - dat += {"Traitor? | "} - if(1) - dat += {"Traitor? | "} - if(2) - dat += {"Traitor? | "} - if(currentkarma) - dat += "[currentkarma] | 0 | " + var/job = "" - dat += "