From 3c9b63e875ad16bad17deef338379703bc48e2ac Mon Sep 17 00:00:00 2001 From: Kyep Date: Tue, 13 Nov 2018 20:44:21 -0800 Subject: [PATCH] mark obj targets, despawn_occupant --- code/modules/admin/admin.dm | 4 +++- code/modules/admin/topic.dm | 8 ++++++-- code/modules/admin/verbs/randomverbs.dm | 11 +++++++++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 2c16a0feb49..254737ebd46 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -115,7 +115,9 @@ var/global/nologevent = 0 body += {" | Bless | Smite"} if(isLivingSSD(M)) - if(!istype(M.loc, /obj/machinery/cryopod)) + if(istype(M.loc, /obj/machinery/cryopod)) + body += {" | De-Spawn "} + else body += {" | Cryo "} if(M.client) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 0462076c016..560ef610100 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1961,8 +1961,12 @@ if(!isLivingSSD(H)) to_chat(usr, "This can only be used on living, SSD players.") return - var/success = cryo_ssd(H) - if(success) + if(istype(H.loc, /obj/machinery/cryopod)) + var/obj/machinery/cryopod/P = H.loc + P.despawn_occupant() + log_admin("[key_name(usr)] despawned [H.job] [H] in cryo.") + message_admins("[key_name_admin(usr)] despawned [H.job] [H] in cryo.") + else if(cryo_ssd(H)) log_admin("[key_name(usr)] sent [H.job] [H] to cryo.") message_admins("[key_name_admin(usr)] sent [H.job] [H] to cryo.") else if(href_list["FaxReplyTemplate"]) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index f944d015749..20d38785b25 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -984,15 +984,22 @@ Traitors and the like can also be revived with the previous role mostly intact. if(job_string in command_positions) job_string = "" + job_string + "" role_string = "-" + var/obj_count = 0 + var/obj_string = "" if(H.mind) if(H.mind.special_role) role_string = "[H.mind.special_role]" if(!H.key && H.mind.key) key_string = H.mind.key - msg += "[key_string][H.real_name][job_string][mins_ssd][role_string]" + for(var/datum/objective/O in all_objectives) + if(O.target == H.mind) + obj_count++ + if(obj_count > 0) + obj_string = "
Obj Target" + msg += "[key_string][H.real_name][job_string][mins_ssd][role_string][obj_string]" msg += "[get_area(H)][ADMIN_PP(H,"PP")]" if(istype(H.loc, /obj/machinery/cryopod)) - msg += "In Cryo" + msg += "De-Spawn" else msg += "Cryo" msg += ""