From 9064d2089e9dbc8e13912f72f52bdc03edaa73d4 Mon Sep 17 00:00:00 2001 From: AnturK Date: Mon, 18 May 2015 10:35:27 +0200 Subject: [PATCH] Adds abductees to Check antags panel. --- code/game/gamemodes/abduction/machinery/experiment.dm | 4 +++- code/modules/admin/player_panel.dm | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/abduction/machinery/experiment.dm b/code/game/gamemodes/abduction/machinery/experiment.dm index 2de8bdd41ff..45fe96068cd 100644 --- a/code/game/gamemodes/abduction/machinery/experiment.dm +++ b/code/game/gamemodes/abduction/machinery/experiment.dm @@ -7,7 +7,8 @@ anchored = 1 state_open = 1 var/points = 0 - var/list/history = new + var/list/history = list() + var/list/abductee_minds = list() var/flash = " - || - " var/obj/machinery/abductor/console/console @@ -145,6 +146,7 @@ return "No glands detected!" if(H.mind != null && H.ckey != null) history += H + abductee_minds += H.mind say("Processing Specimen...") sleep(5) switch(text2num(type)) diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index 656097730e6..54592390be8 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -493,6 +493,17 @@ else dat += "Abductor not found!" dat += "" + dat += "
" + for(var/obj/machinery/abductor/experiment/E in machines) + for(var/datum/mind/abductee in E.abductee_minds) + var/mob/M = abductee.current + if(M) + dat += "" + dat += "" + dat += "" + else + dat += "" + dat += "
Abductees
[M.real_name][M.client ? "" : " (ghost)"][M.stat == 2 ? " (DEAD)" : ""]PMShow Objective
Abductee not found!
" if(istype(ticker.mode, /datum/game_mode/blob)) var/datum/game_mode/blob/mode = ticker.mode